mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
23 lines
694 B
CMake
23 lines
694 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 SHARED ${SOURCE})
|
|
target_link_libraries(cdrom_new libcntpr wdmguid)
|
|
|
|
if((ARCH STREQUAL "i386") AND (NOT MSVC))
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
#add_target_compile_flags(cdrom_new "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
|
|
endif()
|
|
|
|
set_module_type(cdrom_new kernelmodedriver)
|
|
add_importlibs(cdrom_new classpnp ntoskrnl hal)
|
|
add_pch(cdrom_new cdrom.h SOURCE)
|