1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4spec2def(scrrun.dll scrrun.spec) 5add_idl_headers(scrrun_idlheader scrrun.idl) 6add_typelib(scrrun.idl) 7 8list(APPEND SOURCE 9 dictionary.c 10 filesystem.c 11 scrrun.c 12 precomp.h 13 ${CMAKE_CURRENT_BINARY_DIR}/scrrun_stubs.c) 14 15list(APPEND scrrun_rc_deps 16 ${CMAKE_CURRENT_SOURCE_DIR}/scrrun.rgs 17 ${CMAKE_CURRENT_SOURCE_DIR}/scrrun_tlb.rgs 18 ${CMAKE_CURRENT_BINARY_DIR}/scrrun.tlb) 19 20set_source_files_properties(scrrun.rc PROPERTIES OBJECT_DEPENDS "${scrrun_rc_deps}") 21 22add_library(scrrun SHARED 23 ${SOURCE} 24 guid.c 25 scrrun.rc 26 ${CMAKE_CURRENT_BINARY_DIR}/scrrun.def) 27 28add_dependencies(scrrun scrrun_idlheader stdole2) 29set_module_type(scrrun win32dll) 30target_link_libraries(scrrun uuid wine) 31add_importlibs(scrrun oleaut32 version advapi32 msvcrt kernel32 ntdll) 32add_pch(scrrun precomp.h SOURCE) 33add_cd_file(TARGET scrrun DESTINATION reactos/system32 FOR all) 34