mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
4f5a031400
Fix build for winmm and syssetup. svn path=/branches/cmake-bringup/; revision=49895
35 lines
610 B
CMake
35 lines
610 B
CMake
|
|
add_definitions(-D_WINE)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(winmm.dll winmm.spec)
|
|
|
|
set_rc_compiler()
|
|
|
|
list(APPEND SOURCE
|
|
driver.c
|
|
joystick.c
|
|
lolvldrv.c
|
|
mci.c
|
|
mmio.c
|
|
playsound.c
|
|
registry.c
|
|
time.c
|
|
winmm.c
|
|
winmm_res.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/winmm.def)
|
|
|
|
add_library(winmm SHARED ${SOURCE})
|
|
|
|
set_module_type(winmm win32dll)
|
|
|
|
target_link_libraries(winmm
|
|
wine
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll)
|
|
|
|
|
|
add_subdirectory(midimap)
|
|
add_cab_target(winmm 1)
|
|
add_importlib_target(winmm.spec)
|