[DRIVERS]
[reactos.git] / reactos / drivers / storage / class / cdrom_new / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/drivers/storage/class)
3
4 list(APPEND SOURCE
5 cdrom.c
6 data.c
7 ioctl.c
8 mmc.c
9 sec.c
10 cdrom.h)
11
12 add_library(cdrom_new SHARED ${SOURCE})
13
14 target_link_libraries(cdrom_new libcntpr wdmguid)
15
16 if(ARCH STREQUAL "i386")
17 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
18 if(NOT MSVC)
19 #add_target_compile_flags(cdrom_new "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
20 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
21 endif()
22 endif()
23
24 set_module_type(cdrom_new kernelmodedriver)
25 add_importlibs(cdrom_new classpnp ntoskrnl hal)
26 add_pch(cdrom_new cdrom.h SOURCE)