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 reader.c 8 wmvcore_main.c 9 writer.c 10 ${CMAKE_CURRENT_BINARY_DIR}/wmvcore_stubs.c 11 ${CMAKE_CURRENT_BINARY_DIR}/wmvcore.def) 12 13add_library(wmvcore MODULE ${SOURCE} version.rc) 14set_module_type(wmvcore win32dll) 15target_link_libraries(wmvcore wine) 16add_importlibs(wmvcore msvcrt kernel32 ntdll) 17add_cd_file(TARGET wmvcore DESTINATION reactos/system32 FOR all) 18