1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(dmusic.dll dmusic.spec) 5 6list(APPEND SOURCE 7 buffer.c 8 clock.c 9 collection.c 10 dmobject.c 11 dmusic.c 12 dmusic_main.c 13 download.c 14 instrument.c 15 port.c 16 precomp.h) 17 18add_library(dmusic MODULE 19 ${SOURCE} 20 version.rc 21 ${CMAKE_CURRENT_BINARY_DIR}/dmusic.def) 22 23set_module_type(dmusic win32dll) 24target_link_libraries(dmusic dxguid uuid wine) 25add_importlibs(dmusic ole32 advapi32 winmm dsound user32 msvcrt kernel32 ntdll) 26add_pch(dmusic precomp.h SOURCE) 27add_cd_file(TARGET dmusic DESTINATION reactos/system32 FOR all) 28