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