a4e4bc233cbdd092c12d54929b73b63cef24bfb2
[reactos.git] / drivers / network / tcpip / CMakeLists.txt
1
2 include_directories(BEFORE include)
3 include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
4
5 add_definitions(-DNDIS40)
6 add_definitions(-D_NTDRIVER_)
7
8 spec2def(tcpip.sys tcpip.spec)
9
10 list(APPEND SOURCE
11 datalink/lan.c
12 tcpip/ainfo.c
13 tcpip/buffer.c
14 tcpip/dispatch.c
15 tcpip/fileobjs.c
16 tcpip/iinfo.c
17 tcpip/info.c
18 tcpip/lock.c
19 tcpip/main.c
20 tcpip/ninfo.c
21 tcpip/proto.c
22 tcpip/tinfo.c
23 tcpip/wait.c
24 tcpip.rc
25 ${CMAKE_CURRENT_BINARY_DIR}/tcpip.def)
26
27 add_library(tcpip SHARED ${CMAKE_CURRENT_BINARY_DIR}/tcpip_precomp.h.gch ${SOURCE})
28
29 set_module_type(tcpip kernelmodedriver)
30
31 target_link_libraries(tcpip
32 ip
33 oskittcp
34 ${PSEH_LIB}
35 chew
36 -lndis
37 -lntoskrnl
38 -lhal)
39
40 add_pch(tcpip ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
41 add_dependencies(tcpip psdk bugcodes buildno_header)
42
43 add_cab_target(tcpip 2)