1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(msrle32.dll msrle32.spec) 5 6list(APPEND SOURCE 7 msrle32.c 8 ${CMAKE_CURRENT_BINARY_DIR}/msrle32.def) 9 10add_library(msrle32 MODULE ${SOURCE} rsrc.rc) 11 12if(MSVC) 13 # error C4312: 'type cast': conversion from 'unsigned int' to 'LPVOID' of greater size 14 remove_target_compile_option(msrle32 "/we4312") 15endif() 16 17set_module_type(msrle32 win32dll) 18target_link_libraries(msrle32 wine) 19add_importlibs(msrle32 winmm user32 msvcrt kernel32 ntdll) 20add_cd_file(TARGET msrle32 DESTINATION reactos/system32 FOR all) 21