aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-25 22:51:41 +0000
committerSaturneric <[email protected]>2021-06-25 22:51:41 +0000
commitb3364f1206b75c7bfd2fd7da1a1f1dac26fa1950 (patch)
treedd9dd695d6958d5d4b6afa0dd8af9869c796a263
parentUpdate CMakeLists.txt; (diff)
downloadGpgFrontend-b3364f1206b75c7bfd2fd7da1a1f1dac26fa1950.tar.gz
GpgFrontend-b3364f1206b75c7bfd2fd7da1a1f1dac26fa1950.zip
Make Static Link for gpg libraries for macOS
-rw-r--r--src/gpg/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gpg/CMakeLists.txt b/src/gpg/CMakeLists.txt
index a12f371f..b9385549 100644
--- a/src/gpg/CMakeLists.txt
+++ b/src/gpg/CMakeLists.txt
@@ -7,15 +7,21 @@ set(UTILS_DIR ${CMAKE_SOURCE_DIR}/utils)
set(GPGME_LIB_DIR ${UTILS_DIR}/gpgme/lib)
-IF (MINGW)
+if (MINGW)
message(STATUS "Link GPG Static Library For MINGW")
target_link_libraries(gpg
gpgme gpg-error assuan
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core
wsock32)
+elseif(APPLE)
+ message(STATUS "Link GPG Static Library For Unix")
+ target_link_libraries(gpg
+ /usr/local/lib/libgpgme.a /usr/local/lib/libgpg-error.a /usr/local/lib/libassuan.a
+ Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
else()
+
message(STATUS "Link GPG Static Library For Unix")
target_link_libraries(gpg
- gpgme gpg-error assuan
+ /usr/local/lib/libgpgme.a /usr/local/lib/libgpg-error.a /usr/local/lib/libassuan.a
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
-endif() \ No newline at end of file
+endif()