1
2
3include_directories(
4    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
5    inc)
6
7#add_definitions(-D_DEBUG)
8
9list(APPEND SOURCE
10    atacmd_map.cpp
11    bm_devs.cpp
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    stdafx.h)
21
22add_library(uniata MODULE ${SOURCE} idedma.rc)
23
24if(USE_CLANG_CL OR (NOT MSVC))
25    target_compile_options(uniata PRIVATE "-Wno-narrowing")
26    if(USE_CLANG_CL)
27        target_compile_options(uniata PRIVATE "-Wno-unused-const-variable")
28    else()
29        target_compile_options(uniata PRIVATE "-Wno-unused-but-set-variable")
30    endif()
31endif()
32
33add_pch(uniata stdafx.h SOURCE)
34set_module_type(uniata kernelmodedriver)
35add_importlibs(uniata scsiport ntoskrnl hal)
36add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
37add_registry_inf(uniata_reg.inf)
38