1 2set_cpp() 3 4include_directories( 5 BEFORE ${CMAKE_CURRENT_SOURCE_DIR} 6 inc) 7 8#add_definitions(-D_DEBUG) 9 10list(APPEND SOURCE 11 atacmd_map.cpp 12 bm_devs.cpp 13 id_ata.cpp 14 id_badblock.cpp 15 id_dma.cpp 16 id_init.cpp 17 id_probe.cpp 18 id_queue.cpp 19 id_sata.cpp 20 ros_glue/ros_glue.cpp 21 stdafx.h) 22 23add_library(uniata MODULE ${SOURCE} idedma.rc) 24 25if(USE_CLANG_CL OR (NOT MSVC)) 26 target_compile_options(uniata PRIVATE "-Wno-narrowing") 27 if(USE_CLANG_CL) 28 target_compile_options(uniata PRIVATE "-Wno-unused-const-variable") 29 else() 30 target_compile_options(uniata PRIVATE "-Wno-unused-but-set-variable") 31 endif() 32endif() 33 34add_pch(uniata stdafx.h SOURCE) 35set_module_type(uniata kernelmodedriver) 36add_importlibs(uniata scsiport ntoskrnl hal) 37add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all) 38add_registry_inf(uniata_reg.inf) 39