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