-include_directories(inc)
-
set_cpp()
-set_rc_compiler()
-add_library(uniata SHARED
+include_directories(
+ BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
+ inc)
+
+#add_definitions(-D_DEBUG)
+
+list(APPEND SOURCE
id_ata.cpp
id_badblock.cpp
id_dma.cpp
id_probe.cpp
id_queue.cpp
id_sata.cpp
- idedma.rc
ros_glue/ros_glue.cpp)
+add_library(uniata SHARED ${SOURCE} idedma.rc)
+
+
+if(NOT MSVC)
+ # FIXME: http://www.cmake.org/Bug/view.php?id=12998
+ #allow_warnings(uniata)
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-unused-but-set-variable -Wno-narrowing")
+endif()
+
+add_pch(uniata stdafx.h)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
-
-add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
\ No newline at end of file
+add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)