reactos/dll/win32/winmm/midimap/CMakeLists.txt
Jérôme Gardou 7e116f0ef3 [CMAKE] Get rid of replace_compile_flags
Introduce a finer-grained remove_target_compile_option instead
2020-10-20 21:44:54 +02:00

18 lines
510 B
CMake

spec2def(midimap.dll midimap.spec)
add_library(midimap MODULE
midimap.c
midimap.rc
${CMAKE_CURRENT_BINARY_DIR}/midimap.def)
set_module_type(midimap win32dll UNICODE)
if(MSVC)
# error C4133: 'function': incompatible types - from 'LPDWORD' to 'DWORD_PTR *'
remove_target_compile_option(midimap "/we4133")
endif()
target_link_libraries(midimap uuid wine)
add_importlibs(midimap advapi32 user32 winmm msvcrt kernel32 ntdll)
add_cd_file(TARGET midimap DESTINATION reactos/system32 FOR all)