[DRIVERS]
[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 disk.h)
12
13 add_library(disk_new SHARED ${SOURCE} disk.rc)
14
15 target_link_libraries(disk_new libcntpr wdmguid)
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(disk_new "-Wno-error -Wno-format -Wno-pointer-sign")
20 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign")
21 endif()
22 endif()
23
24 set_module_type(disk_new kernelmodedriver)
25 add_importlibs(disk_new classpnp ntoskrnl hal)
26 add_pch(disk_new disk.h SOURCE)
27 add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)