[CMAKE]
[reactos.git] / dll / directx / dmusic / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D__WINESRC__)
5
6 remove_definitions(-D_WIN32_WINNT=0x502)
7 add_definitions(-D_WIN32_WINNT=0x600)
8
9 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
10
11 spec2def(dmusic.dll dmusic.spec)
12
13 add_library(dmusic SHARED
14 buffer.c
15 clock.c
16 collection.c
17 dmusic.c
18 dmusic_main.c
19 download.c
20 downloadedinstrument.c
21 instrument.c
22 port.c
23 regsvr.c
24 version.rc
25 ${CMAKE_CURRENT_BINARY_DIR}/dmusic.def)
26
27 set_entrypoint(dmusic 0)
28
29 target_link_libraries(dmusic
30 dxguid
31 uuid
32 wine)
33
34 add_importlibs(dmusic
35 user32
36 advapi32
37 ole32
38 dsound
39 kernel32
40 ntdll)
41
42 add_dependencies(dmusic psdk)
43
44 add_cd_file(TARGET dmusic DESTINATION reactos/system32 FOR all)