f742c9f0bf31a2f32b42d06273179b958d5f7554
[reactos.git] / reactos / drivers / wdm / audio / drivers / CMIDriver / CMakeLists.txt
1
2 add_subdirectory(cmicontrol)
3 add_subdirectory(cpl)
4
5 set_cpp()
6
7 # for WaveRT support
8 remove_definitions(-D_WIN32_WINNT=0x502)
9 add_definitions(-D_WIN32_WINNT=0x600)
10
11 list(APPEND SOURCE
12 adapter.cpp
13 common.cpp
14 mintopo.cpp
15 minwave.cpp)
16
17 add_library(cmipci SHARED
18 ${SOURCE}
19 cmipci.rc)
20
21 target_link_libraries(cmipci stdunk libcntpr)
22
23 set_module_type(cmipci wdmdriver UNICODE)
24
25 add_importlibs(cmipci portcls hal ntoskrnl)
26
27 if(NOT MSVC)
28 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
29 #add_target_compile_flags(portcls "-Wno-write-strings -Wno-switch")
30 #allow_warnings(portcls)
31 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-switch -Wno-error")
32 endif()
33
34 add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all)
35 if(ARCH STREQUAL "i386")
36 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32-WaveRT.inf" DESTINATION reactos/inf FOR all)
37 else()
38 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x64-WaveRT.inf" DESTINATION reactos/inf FOR all)
39 endif()