1 2add_subdirectory(cmicontrol) 3add_subdirectory(cpl) 4 5set_cpp() 6 7# for WaveRT support 8remove_definitions(-D_WIN32_WINNT=0x502) 9add_definitions(-D_WIN32_WINNT=0x600) 10 11list(APPEND SOURCE 12 adapter.cpp 13 common.cpp 14 mintopo.cpp 15 minwave.cpp 16 precomp.h) 17 18add_library(cmipci MODULE 19 ${SOURCE} 20 guid.cpp 21 cmipci.rc) 22 23target_link_libraries(cmipci stdunk libcntpr uuid) 24set_module_type(cmipci wdmdriver UNICODE) 25add_importlibs(cmipci portcls hal ntoskrnl) 26 27if(USE_CLANG_CL OR (NOT MSVC)) 28 add_target_compile_flags(cmipci "-Wno-write-strings -Wno-switch") 29endif() 30 31add_pch(cmipci precomp.h SOURCE) 32add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all) 33 34if(ARCH STREQUAL "i386") 35 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32.inf" DESTINATION reactos/inf FOR all) 36else() 37 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x64.inf" DESTINATION reactos/inf FOR all) 38endif() 39