aboutsummaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-12 21:48:53 +0000
committerSaturneric <[email protected]>2022-01-12 22:56:59 +0000
commit70cb73cb401bbc08aa3fad3c5317b74f37fc7d53 (patch)
treed6b0157e119a56129ae56833287ec3776b89ba40 /third_party
parent<chore>(project, ui, core): update ci for release-deb-package.yml (diff)
downloadGpgFrontend-70cb73cb401bbc08aa3fad3c5317b74f37fc7d53.tar.gz
GpgFrontend-70cb73cb401bbc08aa3fad3c5317b74f37fc7d53.zip
<chore>(project, ui, core): update ci for release-deb-package.yml
1. Enable the latest one-off build. 2. Fix submodule dependency problem. 3. Fixed known issues in engineering waste paper.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index c8091038..bac7312e 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -15,10 +15,22 @@ add_subdirectory(qt-aes)
# vmime
set(VMIME_HAVE_MESSAGING_PROTO_SENDMAIL OFF CACHE BOOL "" FORCE)
set(VMIME_HAVE_SASL_SUPPORT OFF CACHE BOOL "" FORCE)
+set(VMIME_BUILD_STATIC_LIBRARY ON CACHE BOOL "" FORCE)
set(VMIME_CHARSETCONV_LIB "iconv" CACHE STRING "" FORCE)
set(VMIME_TLS_SUPPORT_LIB "openssl" CACHE STRING "" FORCE)
+
+set(VMIME_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vmime)
+set(VMIME_BIN ${CMAKE_CURRENT_BINARY_DIR}/vmime)
+set(VMIME_BIN_STATIC_LIB ${VMIME_BIN}/build/lib/libvmime.a)
+set(VMIME_INCLUDES ${VMIME_DIR}/src ${CMAKE_BINARY_DIR}/src/vmime/ ${CMAKE_BINARY_DIR}/src/)
+
add_subdirectory(vmime)
+add_library(gpgfrontend_vmime STATIC IMPORTED GLOBAL)
+add_dependencies(gpgfrontend_vmime vmime-static vmime-static-config)
+set_target_properties(gpgfrontend_vmime PROPERTIES IMPORTED_LOCATION ${VMIME_BIN_STATIC_LIB})
+set_target_properties(gpgfrontend_vmime PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${VMIME_INCLUDES}")
+
# gnupg
include(ExternalProject)