5e8e5ccad0e7e06e0998614a7ed96c6af43626bf
[reactos.git] / drivers / network / dd / netkvm / CMakeLists.txt
1
2 include_directories(BEFORE common virtio)
3
4 add_definitions(
5 -DNDIS_MINIPORT_DRIVER
6 -DNDIS51_MINIPORT=1)
7
8 list(APPEND SOURCE
9 Common/ParaNdis-Common.c
10 Common/ParaNdis-Oid.c
11 Common/ParaNdis-VirtIO.c
12 Common/ParaNdis-Debug.c
13 Common/sw-offload.c
14 virtio/VirtIOPCICommon.c
15 virtio/VirtIOPCILegacy.c
16 virtio/VirtIOPCIModern.c
17 virtio/VirtIORing.c
18 virtio/VirtIORing-Packed.c
19 wxp/ParaNdis5-Driver.c
20 wxp/ParaNdis5-Impl.c
21 wxp/ParaNdis5-Oid.c)
22
23 add_library(netkvm MODULE ${SOURCE} wxp/parandis.rc)
24 set_module_type(netkvm kernelmodedriver)
25 add_importlibs(netkvm ndis ntoskrnl hal)
26 add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
27
28 if (NOT MSVC)
29 add_compile_flags("-Wno-unused-function")
30 add_compile_flags("-Wno-old-style-declaration")
31 add_compile_flags("-Wno-unknown-pragmas")
32 add_compile_flags("-Wno-unused-but-set-variable")
33 add_compile_flags("-Wno-pointer-sign")
34 add_compile_flags("-Wno-pointer-to-int-cast")
35 add_compile_flags("-Wno-int-to-pointer-cast")
36 add_compile_flags("-Wno-attributes")
37 endif()