1 2add_definitions(-D__WINESRC__) 3include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(wintrust.dll wintrust.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 asn.c 8 crypt.c 9 register.c 10 softpub.c 11 wintrust_main.c 12 precomp.h 13 ${CMAKE_CURRENT_BINARY_DIR}/wintrust_stubs.c) 14 15add_library(wintrust SHARED 16 ${SOURCE} 17 version.rc 18 ${CMAKE_CURRENT_BINARY_DIR}/wintrust.def) 19 20set_module_type(wintrust win32dll) 21target_link_libraries(wintrust wine ${PSEH_LIB}) 22# FIXME: imagehlp should be delay-imported. See CORE-6504 23#add_delay_importlibs(wintrust cryptui imagehlp) 24add_delay_importlibs(wintrust cryptui) 25add_importlibs(wintrust imagehlp crypt32 user32 advapi32 msvcrt kernel32 ntdll) 26add_pch(wintrust precomp.h SOURCE) 27add_cd_file(TARGET wintrust DESTINATION reactos/system32 FOR all) 28