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