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.def) 14 15add_library(pstorec SHARED ${SOURCE}) 16 17set_module_type(pstorec win32dll) 18target_link_libraries(pstorec uuid wine) 19add_importlibs(pstorec msvcrt kernel32 ntdll) 20add_dependencies(pstorec pstorec_tlb) 21add_cab_target(pstorec 1) 22