reactos/dll/win32/mciwave/CMakeLists.txt

25 lines
669 B
Text
Raw Normal View History

add_definitions(
-D__WINESRC__
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(mciwave.dll mciwave.spec)
list(APPEND SOURCE
mciwave.c
${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
add_library(mciwave MODULE ${SOURCE})
set_module_type(mciwave win32dll)
target_link_libraries(mciwave wine)
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
if(MSVC)
# Disable warning C4305: '=': truncation from 'UINT' to 'WORD'
target_compile_options(mciwave PRIVATE /wd4305)
else()
target_compile_options(mciwave PRIVATE "-Wno-overflow")
endif()