1 2remove_definitions(-D_WIN32_WINNT=0x502) 3 4list(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 20add_library(cdrom MODULE ${SOURCE} cdrom.rc) 21set_module_type(cdrom kernelmodedriver) 22 23if(GCC OR CLANG) 24 target_compile_options(cdrom PRIVATE -Wno-format -Wno-unused-variable -Wno-pointer-sign) 25endif() 26 27if(GCC) 28 target_compile_options(cdrom PRIVATE -Wno-unknown-pragmas -Wno-incompatible-pointer-types -Wno-switch) 29endif() 30 31if(CLANG) 32 target_compile_options(cdrom PRIVATE -Wno-enum-conversion -Wno-tautological-constant-compare) 33endif() 34 35target_compile_definitions(cdrom PRIVATE DEBUG_USE_KDPRINT) 36 37target_link_libraries(cdrom wdf01000 ntoskrnl_vista libcntpr ${PSEH_LIB}) 38add_importlibs(cdrom ntoskrnl hal) 39# add_pch(cdrom cdrom.h SOURCE) 40add_cd_file(TARGET cdrom DESTINATION reactos/system32/drivers NO_CAB FOR all) 41add_registry_inf(cdrom_reg.inf) 42add_driver_inf(cdrom cdrom.inf) 43