[DRIVERS]
[reactos.git] / reactos / 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
24 if(NOT MSVC)
25 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
26 #allow_warnings(uniata)
27 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-unused-but-set-variable -Wno-narrowing")
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)