reactos/drivers/storage/class/disk_new/CMakeLists.txt

27 lines
720 B
CMake

include_directories(..)
list(APPEND SOURCE
data.c
disk.c
diskwmi.c
enum.c
geometry.c
part.c
pnp.c
disk.h)
add_library(disk_new SHARED ${SOURCE} disk.rc)
target_link_libraries(disk_new libcntpr wdmguid)
if((ARCH STREQUAL "i386") AND (NOT MSVC))
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
#add_target_compile_flags(disk_new "-Wno-format -Wno-pointer-sign")
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-pointer-sign")
endif()
set_module_type(disk_new kernelmodedriver)
add_importlibs(disk_new classpnp ntoskrnl hal)
add_pch(disk_new disk.h SOURCE)
add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)