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