1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4spec2def(mspatcha.dll mspatcha.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 mspatcha_main.c 8 lzx.c 9 lzx.h 10 ${CMAKE_CURRENT_BINARY_DIR}/mspatcha_stubs.c 11 ${CMAKE_CURRENT_BINARY_DIR}/mspatcha.def) 12 13add_library(mspatcha MODULE ${SOURCE} version.rc) 14set_module_type(mspatcha win32dll) 15target_link_libraries(mspatcha wine) 16add_importlibs(mspatcha msvcrt kernel32 ntdll) 17add_cd_file(TARGET mspatcha DESTINATION reactos/system32 FOR all) 18