02c7dbf5327a149a613633e066665f15d208f23d
[reactos.git] / reactos / drivers / storage / class / disk_new / CMakeLists.txt
1 include_directories(..)
2
3 list(APPEND SOURCE
4 data.c
5 disk.c
6 diskwmi.c
7 enum.c
8 geometry.c
9 part.c
10 pnp.c)
11
12 add_library(disk_new SHARED
13 ${SOURCE}
14 disk.rc)
15
16 target_link_libraries(disk_new libcntpr wdmguid)
17 if(ARCH MATCHES i386)
18 if(MSVC)
19 add_target_compile_flags(disk_new "/Gz")
20 else()
21 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
22 #add_target_compile_flags(disk_new "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
23 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
24 endif()
25 endif()
26
27 set_module_type(disk_new kernelmodedriver)
28 add_importlibs(disk_new classpnp ntoskrnl hal)
29 add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)