2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2013-04-13 17:29:01 +00:00
|
|
|
add_definitions(-D__WINESRC__)
|
2011-05-16 13:12:07 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(dmusic.dll dmusic.spec)
|
|
|
|
|
2013-04-13 17:29:01 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
buffer.c
|
|
|
|
clock.c
|
|
|
|
collection.c
|
|
|
|
dmusic.c
|
|
|
|
dmusic_main.c
|
|
|
|
download.c
|
|
|
|
instrument.c
|
|
|
|
port.c
|
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dmusic.def)
|
|
|
|
|
2013-04-13 17:29:01 +00:00
|
|
|
add_library(dmusic SHARED ${SOURCE})
|
2013-02-23 16:45:48 +00:00
|
|
|
set_module_type(dmusic win32dll UNICODE)
|
2013-04-13 17:29:01 +00:00
|
|
|
target_link_libraries(dmusic dxguid uuid wine)
|
|
|
|
add_importlibs(dmusic ole32 advapi32 winmm msvcrt kernel32 ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(dmusic psdk)
|
2011-07-28 15:06:56 +00:00
|
|
|
add_pch(dmusic dmusic_private.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET dmusic DESTINATION reactos/system32 FOR all)
|