mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 13:52:30 +00:00
7e116f0ef3
Introduce a finer-grained remove_target_compile_option instead
18 lines
510 B
CMake
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)
|