reactos/drivers/storage/ide/uniata/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

39 lines
879 B
CMake

set_cpp()
include_directories(
BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
inc)
#add_definitions(-D_DEBUG)
list(APPEND SOURCE
atacmd_map.cpp
bm_devs.cpp
id_ata.cpp
id_badblock.cpp
id_dma.cpp
id_init.cpp
id_probe.cpp
id_queue.cpp
id_sata.cpp
ros_glue/ros_glue.cpp
stdafx.h)
add_library(uniata MODULE ${SOURCE} idedma.rc)
if(USE_CLANG_CL OR (NOT MSVC))
add_target_compile_flags(uniata "-Wno-narrowing")
if(USE_CLANG_CL)
add_target_compile_flags(uniata "-Wno-unused-const-variable")
else()
add_target_compile_flags(uniata "-Wno-unused-but-set-variable")
endif()
endif()
add_pch(uniata stdafx.h SOURCE)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(uniata_reg.inf)