1 2spec2def(midimap.dll midimap.spec) 3 4if(MSVC) 5 # error C4133: 'function': incompatible types - from 'LPDWORD' to 'DWORD_PTR *' 6 replace_compile_flags("/we4133" " ") 7endif() 8 9add_library(midimap MODULE 10 midimap.c 11 midimap.rc 12 ${CMAKE_CURRENT_BINARY_DIR}/midimap.def) 13 14set_module_type(midimap win32dll UNICODE) 15target_link_libraries(midimap uuid wine) 16add_importlibs(midimap advapi32 user32 winmm msvcrt kernel32 ntdll) 17add_cd_file(TARGET midimap DESTINATION reactos/system32 FOR all) 18