1spec2def(mydocs.dll mydocs.spec) 2 3add_definitions( 4 -D_WINE) 5 6set(ICONS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../win32/shell32/res/icons) 7file(GLOB_RECURSE mydocs_rc_deps res/*.* ${ICONS_DIR}/235.ico ${ICONS_DIR}/236.ico) 8add_rc_deps(mydocs.rc ${mydocs_rc_deps}) 9 10list(APPEND SOURCE 11 CMyDocsDropHandler.cpp 12 mydocs.cpp 13 precomp.hpp) 14 15add_library(mydocs MODULE 16 ${SOURCE} 17 mydocs.rc 18 ${CMAKE_CURRENT_BINARY_DIR}/mydocs.def) 19 20set_module_type(mydocs win32dll UNICODE) 21target_link_libraries(mydocs uuid wine cpprt atl_classes) 22add_delay_importlibs(mydocs ole32 oleaut32) 23add_importlibs(mydocs advapi32 shell32 user32 comctl32 shlwapi msvcrt kernel32 ntdll) 24add_pch(mydocs precomp.hpp SOURCE) 25add_cd_file(TARGET mydocs DESTINATION reactos/system32 FOR all) 26