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