mirror of
https://github.com/reactos/reactos.git
synced 2024-08-31 07:38:48 +00:00
![Victor Perevertkin](/assets/img/avatar_default.png)
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
40 lines
941 B
CMake
40 lines
941 B
CMake
|
|
add_definitions(-D_WINE)
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(winmm.dll winmm.spec ADD_IMPORTLIB)
|
|
|
|
if(MSVC)
|
|
# error C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
|
|
replace_compile_flags("/we4312" " ")
|
|
endif()
|
|
|
|
list(APPEND SOURCE
|
|
driver.c
|
|
joystick.c
|
|
lolvldrv.c
|
|
mci.c
|
|
mmio.c
|
|
playsound.c
|
|
registry.c
|
|
time.c
|
|
winmm.c
|
|
winemm.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/winmm_stubs.c)
|
|
|
|
add_library(winmm MODULE
|
|
${SOURCE}
|
|
winmm_res.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/winmm.def)
|
|
|
|
set_module_type(winmm win32dll)
|
|
target_link_libraries(winmm wine ${PSEH_LIB})
|
|
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll)
|
|
add_pch(winmm winemm.h SOURCE)
|
|
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
|
|
|
|
if(NOT MSVC)
|
|
target_compile_options(winmm PRIVATE "-Wno-unused-but-set-variable")
|
|
endif()
|
|
|
|
add_subdirectory(midimap)
|