mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
321bcc056d
svn path=/branches/GSoC_2016/AHCI/; revision=71203
26 lines
720 B
CMake
26 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)
|