Sync with trunk r58151 to bring the latest changes from Amine and Timo.
[reactos.git] / drivers / storage / ide / uniata / CMakeLists.txt
1
2 include_directories(
3 BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
4 inc)
5
6 #add_definitions(-D_DEBUG)
7
8 set_cpp()
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
20 add_library(uniata SHARED ${SOURCE} idedma.rc)
21
22 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
23 if(MSVC)
24 #add_target_compile_flags(uniata "/GR-")
25 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
26 else()
27 #allow_warnings(uniata)
28 #add_target_compile_flags(uniata "-fno-exceptions -fno-rtti")
29 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-error")
30 endif()
31
32 add_pch(uniata stdafx.h)
33 set_module_type(uniata kernelmodedriver)
34 add_importlibs(uniata scsiport ntoskrnl hal)
35 add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)