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