mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-14 11:29:33 +00:00
59 lines
1.2 KiB
CMake
59 lines
1.2 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)
|
|
target_link_libraries(qca-gnupg Qt5::Core ${QCA_LIB_NAME})
|
|
|
|
if (WIN32)
|
|
target_link_libraries(qca-gnupg advapi32)
|
|
endif (WIN32)
|
|
|
|
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()
|