1
2list(APPEND SOURCE
3    capture.c
4    joystick.c
5    mci.c
6    mcicda.c
7    midi.c
8    mixer.c
9    mmio.c
10    timer.c
11    testlist.c
12    wave.c)
13
14add_executable(winmm_winetest ${SOURCE})
15target_link_libraries(winmm_winetest dxguid)
16set_module_type(winmm_winetest win32cui)
17add_importlibs(winmm_winetest winmm user32 advapi32 ole32 msvcrt kernel32)
18add_rostests_file(TARGET winmm_winetest)
19
20if(NOT MSVC)
21    add_target_compile_flags(winmm_winetest "-Wno-format")
22    if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
23        add_target_compile_flags(winmm_winetest "-Wno-unused-but-set-variable")
24    endif()
25endif()
26