Synchronize up to trunk's revision r57784.
[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 set_rc_compiler()
10
11 list(APPEND SOURCE
12 id_ata.cpp
13 id_badblock.cpp
14 id_dma.cpp
15 id_init.cpp
16 id_probe.cpp
17 id_queue.cpp
18 id_sata.cpp
19 ros_glue/ros_glue.cpp)
20
21 add_library(uniata SHARED
22 ${SOURCE}
23 idedma.rc)
24
25 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
26 if(MSVC)
27 #add_target_compile_flags(uniata "/GR-")
28 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
29 else()
30 #allow_warnings(uniata)
31 #add_target_compile_flags(uniata "-fno-exceptions -fno-rtti")
32 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-error")
33 endif()
34
35 add_pch(uniata stdafx.h)
36 set_module_type(uniata kernelmodedriver)
37 add_importlibs(uniata scsiport ntoskrnl hal)
38 add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)