1 2add_definitions( 3 -DCOM_NO_WINDOWS_H 4 -D__WINESRC__) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 dpclassfactory.c 11 dplay.c 12 dplaysp.c 13 dplayx_global.c 14 dplayx_main.c 15 dplayx_messages.c 16 dplobby.c 17 lobbysp.c 18 name_server.c 19 precomp.h) 20 21add_library(dplayx MODULE 22 ${SOURCE} 23 version.rc 24 ${CMAKE_CURRENT_BINARY_DIR}/dplayx.def) 25 26set_module_type(dplayx win32dll) 27target_link_libraries(dplayx dxguid uuid wine) 28add_importlibs(dplayx winmm ole32 user32 advapi32 msvcrt kernel32 ntdll) 29add_pch(dplayx precomp.h SOURCE) 30add_cd_file(TARGET dplayx DESTINATION reactos/system32 FOR all) 31