1
2spec2def(dsound.dll dsound.spec ADD_IMPORTLIB)
3
4list(APPEND SOURCE
5    capture.c
6    capturebuffer.c
7    classfactory.c
8    devicelist.c
9    directsound.c
10    dsound.c
11    enum.c
12    misc.c
13    notify.c
14    primary.c
15    property.c
16    regsvr.c
17    secondary.c
18    stubs.c
19    precomp.h
20    resource.h)
21
22add_library(dsound MODULE
23    ${SOURCE}
24    version.rc
25    ${CMAKE_CURRENT_BINARY_DIR}/dsound.def)
26
27set_module_type(dsound win32dll)
28target_link_libraries(dsound dxguid uuid)
29add_importlibs(dsound winmm ole32 advapi32 setupapi ksuser user32 msvcrt kernel32 ntdll)
30add_pch(dsound precomp.h SOURCE)
31add_cd_file(TARGET dsound DESTINATION reactos/system32 FOR all)
32