[CMAKE]
[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 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
19 if(MSVC)
20 #add_target_compile_flags(disk_new "/Gz")
21 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/Gz")
22 else()
23
24 #add_target_compile_flags(disk_new "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
25 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
26 endif()
27 endif()
28
29 set_module_type(disk_new kernelmodedriver)
30 add_importlibs(disk_new classpnp ntoskrnl hal)
31 add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)