1 2add_typelib(pstorec_tlb pstorec_tlb.idl) 3add_dependencies(pstorec_tlb stdole2) 4 5add_definitions(-D__WINESRC__) 6 7set_rc_compiler() 8spec2def(pstorec.dll pstorec.spec) 9 10list(APPEND SOURCE 11 pstorec.c 12 rsrc.rc 13 ${CMAKE_CURRENT_BINARY_DIR}/pstorec_stubs.c 14 ${CMAKE_CURRENT_BINARY_DIR}/pstorec.def) 15 16add_library(pstorec SHARED ${SOURCE}) 17 18set_module_type(pstorec win32dll) 19target_link_libraries(pstorec uuid wine) 20add_importlibs(pstorec msvcrt kernel32 ntdll) 21add_dependencies(pstorec pstorec_tlb) 22add_cd_file(TARGET pstorec DESTINATION reactos/system32 FOR all) 23