4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-15 03:49:33 +00:00
Tobias Junghans 2c3992f075 Add Qt 6 build support
The Core5Compat module is still required for QTextCodec and some
difficult remaining QRegExp -> QRegularExpression migrations.
2021-05-29 22:28:27 +00:00

63 lines
1.3 KiB
CMake

# QCA GnuPG
enable_plugin("gnupg")
set(QCA_GNUPG_SOURCES
qca-gnupg.cpp
gpgop.cpp
utils.cpp
gpgproc/sprocess.cpp
mypgpkeycontext.cpp
mykeystoreentry.cpp
myopenpgpcontext.cpp
mykeystorelist.cpp
mymessagecontext.cpp
ringwatch.cpp
lineconverter.cpp
gpgaction.cpp
gpgproc/gpgproc.cpp
)
set(QCA_GNUPG_HEADERS
gpgaction.h
ringwatch.h
gpgop.h
gpgop_p.h
lineconverter.h
mypgpkeycontext.h
mykeystoreentry.h
mykeystorelist.h
gpgproc/gpgproc_p.h
gpgproc/sprocess.h
gpgproc/gpgproc.h
utils.h
mymessagecontext.h
myopenpgpcontext.h
)
add_library(qca-gnupg ${PLUGIN_TYPE} ${QCA_GNUPG_SOURCES} ${EXTRA_GNUPG_SOURCES} ${QCA_GNUPG_HEADERS})
if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE")
set_property(TARGET qca-gnupg PROPERTY SUFFIX ".dylib")
endif()
include_directories(gpgproc)
if(QT6)
target_link_libraries(qca-gnupg Qt6::Core ${QCA_LIB_NAME})
else()
target_link_libraries(qca-gnupg Qt5::Core ${QCA_LIB_NAME})
endif()
if (WIN32)
target_link_libraries(qca-gnupg advapi32)
endif()
if(NOT DEVELOPER_MODE)
install(TARGETS qca-gnupg DESTINATION
LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}"
ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}"
RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}")
install_pdb(qca-gnupg ${QCA_CRYPTO_INSTALL_DIR})
endif()