xref: /reactos/dll/win32/mciwave/CMakeLists.txt (revision 9393fc32)
1
2add_definitions(
3    -D__WINESRC__
4    -D_WINE)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(mciwave.dll mciwave.spec)
8
9list(APPEND SOURCE
10    mciwave.c
11    ${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
12
13add_library(mciwave MODULE ${SOURCE})
14set_module_type(mciwave win32dll)
15target_link_libraries(mciwave wine)
16add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
17add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
18
19if(MSVC)
20    # Disable warning C4305: '=': truncation from 'UINT' to 'WORD'
21    target_compile_options(mciwave PRIVATE /wd4305)
22else()
23    target_compile_options(mciwave PRIVATE "-Wno-overflow")
24endif()
25