mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
7e069ccdb2
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
24 lines
648 B
CMake
24 lines
648 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/drivers/storage/class)
|
|
|
|
list(APPEND SOURCE
|
|
cdrom.c
|
|
data.c
|
|
ioctl.c
|
|
mmc.c
|
|
sec.c
|
|
cdrom.h)
|
|
|
|
add_library(cdrom_new MODULE ${SOURCE})
|
|
target_link_libraries(cdrom_new libcntpr wdmguid)
|
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
|
target_compile_options(cdrom_new PRIVATE -Wno-format -Wno-unused-variable -Wno-pointer-sign)
|
|
if(USE_CLANG_CL)
|
|
target_compile_options(cdrom_new PRIVATE -Wno-enum-conversion -Wno-tautological-constant-compare)
|
|
endif()
|
|
endif()
|
|
|
|
set_module_type(cdrom_new kernelmodedriver)
|
|
add_importlibs(cdrom_new classpnp ntoskrnl hal)
|
|
add_pch(cdrom_new cdrom.h SOURCE)
|