[CMAKE] Get rid of the set_cpp macro
[reactos.git] / drivers / storage / ide / uniata / CMakeLists.txt
1
2
3 include_directories(
4 BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
5 inc)
6
7 #add_definitions(-D_DEBUG)
8
9 list(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
22 add_library(uniata MODULE ${SOURCE} idedma.rc)
23
24 if(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()
31 endif()
32
33 add_pch(uniata stdafx.h SOURCE)
34 set_module_type(uniata kernelmodedriver)
35 add_importlibs(uniata scsiport ntoskrnl hal)
36 add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
37 add_registry_inf(uniata_reg.inf)