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