1 2add_definitions(-D__WINESRC__) 3add_definitions(-D_WINE) 4include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 5spec2def(msvfw32.dll msvfw32.spec ADD_IMPORTLIB) 6 7list(APPEND SOURCE 8 mciwnd.c 9 msvideo_main.c 10 drawdib.c 11 precomp.h 12 ${CMAKE_CURRENT_BINARY_DIR}/msvfw32_stubs.c) 13 14add_library(msvfw32 SHARED 15 ${SOURCE} 16 rsrc.rc 17 ${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def) 18 19set_module_type(msvfw32 win32dll) 20target_link_libraries(msvfw32 wine) 21add_importlibs(msvfw32 winmm comctl32 user32 gdi32 advapi32 msvcrt kernel32 ntdll) 22add_pch(msvfw32 precomp.h SOURCE) 23add_cd_file(TARGET msvfw32 DESTINATION reactos/system32 FOR all) 24