xref: /reactos/dll/win32/wintrust/CMakeLists.txt (revision 3e1f4074)
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 MODULE
16    ${SOURCE}
17    version.rc
18    ${CMAKE_CURRENT_BINARY_DIR}/wintrust.def)
19
20if(MSVC)
21    # Disable warning C4090: 'function': different 'const' qualifiers
22    target_compile_options(wintrust PRIVATE /wd4090)
23endif()
24
25set_module_type(wintrust win32dll)
26target_link_libraries(wintrust wine ${PSEH_LIB})
27# FIXME: imagehlp should be delay-imported. See CORE-6504
28#add_delay_importlibs(wintrust cryptui imagehlp)
29add_delay_importlibs(wintrust cryptui)
30add_importlibs(wintrust imagehlp crypt32 user32 advapi32 msvcrt kernel32 ntdll)
31add_pch(wintrust precomp.h SOURCE)
32add_cd_file(TARGET wintrust DESTINATION reactos/system32 FOR all)
33