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