AHCI-SATA Interface almost ready.
[reactos.git] / drivers / storage / ide / uniata / CMakeLists.txt
1
2 set_cpp()
3
4 include_directories(
5 BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
6 inc)
7
8 #add_definitions(-D_DEBUG)
9
10 list(APPEND SOURCE
11 id_ata.cpp
12 id_badblock.cpp
13 id_dma.cpp
14 id_init.cpp
15 id_probe.cpp
16 id_queue.cpp
17 id_sata.cpp
18 ros_glue/ros_glue.cpp
19 stdafx.h)
20
21 add_library(uniata SHARED ${SOURCE} idedma.rc)
22
23 if(NOT MSVC)
24 add_target_compile_flags(uniata "-Wno-narrowing")
25 if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
26 add_target_compile_flags(uniata "-Wno-unused-but-set-variable")
27 endif()
28 endif()
29
30 add_pch(uniata stdafx.h SOURCE)
31 set_module_type(uniata kernelmodedriver)
32 add_importlibs(uniata scsiport ntoskrnl hal)
33 add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
34 add_registry_inf(uniata_reg.inf)