[CMAKE]
[reactos.git] / drivers / network / ndis / CMakeLists.txt
1
2 include_directories(BEFORE include)
3
4 add_definitions(
5 -DNDIS_WRAPPER
6 -DNDIS51
7 -DNDIS51_MINIPORT
8 -DNDIS_LEGACY_DRIVER
9 -DNDIS_LEGACY_MINIPORT
10 -DNDIS_LEGACY_PROTOCOL
11 -DNDIS_MINIPORT_DRIVER)
12
13 spec2def(ndis.sys ndis.spec)
14
15 list(APPEND SOURCE
16 ndis/30stubs.c
17 ndis/40stubs.c
18 ndis/50stubs.c
19 ndis/buffer.c
20 ndis/cl.c
21 ndis/cm.c
22 ndis/co.c
23 ndis/config.c
24 ndis/control.c
25 ndis/efilter.c
26 ndis/hardware.c
27 ndis/io.c
28 ndis/main.c
29 ndis/memory.c
30 ndis/miniport.c
31 ndis/misc.c
32 ndis/protocol.c
33 ndis/string.c
34 ndis/time.c
35 ndis.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/ndis.def)
37
38 add_library(ndis SHARED ${CMAKE_CURRENT_BINARY_DIR}/ndis_ndissys.h.gch ${SOURCE})
39
40 set_module_type(ndis kernelmodedriver)
41 add_importlibs(ndis ntoskrnl hal)
42
43 add_pch(ndis ${CMAKE_CURRENT_SOURCE_DIR}/include/ndissys.h ${SOURCE})
44
45 add_cd_file(TARGET ndis DESTINATION reactos/system32/drivers)
46 add_importlib_target(ndis.spec)