[CMAKE]
[reactos.git] / drivers / network / tdi / 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(tdi ${CMAKE_CURRENT_SOURCE_DIR}/misc/tdi.spec ${CMAKE_CURRENT_BINARY_DIR}/tdi.def)
9
10 list(APPEND SOURCE
11 cte/string.c
12 cte/stubs.c
13 misc/main.c
14 misc/tdi.rc
15 tdi/dereg.c
16 tdi/handler.c
17 tdi/obsolete.c
18 tdi/stubs.c)
19
20 add_library(tdi SHARED ${SOURCE})
21
22 set_module_type(tdi kernelmodedriver)
23
24 target_link_libraries(tdi
25 ${CMAKE_CURRENT_BINARY_DIR}/tdi.def
26 -lntoskrnl
27 -lhal)
28
29 add_dependencies(tdi psdk bugcodes buildno_header)
30
31 add_cab_target(tdi 2)