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