[WDMAUD]
[reactos.git] / reactos / dll / win32 / wdmaud.drv / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/include/reactos/libs/sound
4 ${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud
5 ${REACTOS_SOURCE_DIR}/lib/drivers/sound/mmixer
6 ${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
7
8 spec2def(wdmaud.drv wdmaud.spec)
9
10 list(APPEND SOURCE
11 wdmaud.c
12 mixer.c
13 mmixer.c
14 legacy.c
15 wdmaud.h)
16
17 add_library(wdmaud.drv SHARED
18 ${SOURCE}
19 wdmaud.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.def)
21
22 set_module_type(wdmaud.drv win32dll UNICODE)
23 set_target_properties(wdmaud.drv PROPERTIES SUFFIX "")
24 target_link_libraries(wdmaud.drv mmebuddy libsamplerate mmixer)
25
26 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
27 target_link_libraries(wdmaud.drv mingwex)
28 endif()
29
30 add_importlibs(wdmaud.drv user32 winmm advapi32 msvcrt setupapi ksuser kernel32 ntdll)
31 add_pch(wdmaud.drv wdmaud.h SOURCE)
32 add_cd_file(TARGET wdmaud.drv DESTINATION reactos/system32 FOR all)