[CDROM_NEW] Import Microsoft CDROM class driver from GitHub
[reactos.git] / drivers / storage / class / cdrom_new / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3
4 list(APPEND SOURCE
5 aacs.c
6 autorun.c
7 cdrom.c
8 common.c
9 data.c
10 guid.c
11 init.c
12 ioctl.c
13 mmc.c
14 pnppower.c
15 scratch.c
16 sense.c
17 zpodd.c
18 cdrom.h)
19
20 add_library(cdrom MODULE ${SOURCE})
21 set_module_type(cdrom kernelmodedriver)
22
23 if(GCC OR CLANG)
24 target_compile_options(cdrom PRIVATE -Wno-format -Wno-unused-variable -Wno-pointer-sign)
25 endif()
26
27 if(GCC)
28 target_compile_options(cdrom PRIVATE -Wno-unknown-pragmas -Wno-incompatible-pointer-types -Wno-switch)
29 endif()
30
31 if(CLANG)
32 target_compile_options(cdrom PRIVATE -Wno-enum-conversion -Wno-tautological-constant-compare)
33 endif()
34
35 target_compile_definitions(cdrom PRIVATE DEBUG_USE_KDPRINT)
36
37 target_link_libraries(cdrom wdf01000 ntoskrnl_vista libcntpr ${PSEH_LIB})
38 add_importlibs(cdrom ntoskrnl hal)
39 # add_pch(cdrom cdrom.h SOURCE)
40 add_cd_file(TARGET cdrom DESTINATION reactos/system32/drivers NO_CAB FOR all)
41 add_driver_inf(cdrom cdrom.inf)