98e8139fa69189613f337ac2f0626967a63f9bea
[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 STREQUAL "i386")
18 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
19 if(NOT MSVC)
20 #add_target_compile_flags(disk_new "-Wno-error -Wno-format -Wno-pointer-sign")
21 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign")
22 endif()
23 endif()
24
25 set_module_type(disk_new kernelmodedriver)
26 add_importlibs(disk_new classpnp ntoskrnl hal)
27 add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)