[CMAKE]
[reactos.git] / dll / directx / dsound / CMakeLists.txt
1
2 add_definitions(-D_WINE)
3 add_definitions(-D_DLL -D__USE_CRTIMP)
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 spec2def(dsound ${CMAKE_CURRENT_SOURCE_DIR}/dsound.spec ${CMAKE_CURRENT_BINARY_DIR}/dsound.def)
7
8 add_library(dsound SHARED
9 buffer.c
10 capture.c
11 dsound.c
12 dsound_convert.c
13 dsound_main.c
14 duplex.c
15 mixer.c
16 primary.c
17 propset.c
18 regsvr.c
19 sound3d.c
20 version.rc)
21
22 set_module_type(dsound win32dll)
23
24 target_link_libraries(dsound
25 ${CMAKE_CURRENT_BINARY_DIR}/dsound.def
26 dxguid
27 uuid
28 wine)
29
30 add_importlibs(dsound
31 msvcrt
32 user32
33 advapi32
34 ole32
35 winmm
36 kernel32
37 ntdll)
38
39 add_dependencies(dsound dsound_def)
40 add_cab_target(dsound 1)