aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-29 19:24:23 +0000
committersaturneric <[email protected]>2024-07-29 19:24:23 +0000
commitf8d638b7b9a73ed6921ac3e1ba2f63e53f820e11 (patch)
tree8ffa82e33522de03974d6d0289aa831b4fd6ebdf /src
parentMerge branch 'develop' of ssh://ssh.git.bktus.com:2222/GpgFrontend/GpgFronten... (diff)
parentfix: solve ci issues (diff)
downloadGpgFrontend-f8d638b7b9a73ed6921ac3e1ba2f63e53f820e11.tar.gz
GpgFrontend-f8d638b7b9a73ed6921ac3e1ba2f63e53f820e11.zip
Merge branch 'develop' of github.com:saturneric/GpgFrontend into develop
Diffstat (limited to 'src')
-rw-r--r--src/core/CMakeLists.txt36
-rw-r--r--src/test/CMakeLists.txt9
2 files changed, 8 insertions, 37 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 1aeabce3..d5b213ca 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -53,15 +53,6 @@ target_compile_definitions(gpgfrontend_core PUBLIC GF_CORE)
# mimalloc (except apple macos)
if(NOT APPLE)
target_link_libraries(gpgfrontend_core PUBLIC mimalloc)
-
- # use system installed libraries or install it system wide
- if(MINGW AND NOT STABLE_BUILD_FULL_SDK)
- set_target_properties(mimalloc
- PROPERTIES
- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- )
- endif()
endif()
# qt-aes
@@ -84,28 +75,17 @@ if(MINGW)
endif()
# configure libarchive
-if(NOT MINGW)
- if(APPLE)
- if(EXISTS "/usr/local/opt/libarchive/include")
- set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include")
- else()
- set(LibArchive_INCLUDE_DIR "/opt/homebrew/opt/libarchive/include")
- endif()
- endif()
-
- find_package(LibArchive REQUIRED)
- target_include_directories(gpgfrontend_core PRIVATE ${LibArchive_INCLUDE_DIR})
-else()
- # use system installed libraries or install it system wide
- if(NOT STABLE_BUILD_FULL_SDK)
- set_target_properties(archive
- PROPERTIES
- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- )
+if(APPLE)
+ if(EXISTS "/usr/local/opt/libarchive/include")
+ set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include")
+ else()
+ set(LibArchive_INCLUDE_DIR "/opt/homebrew/opt/libarchive/include")
endif()
endif()
+find_package(LibArchive REQUIRED)
+target_include_directories(gpgfrontend_core PRIVATE ${LibArchive_INCLUDE_DIR})
+
# link libarchive
target_link_libraries(gpgfrontend_core PRIVATE archive)
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index 79f17ac0..9179f3c0 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -53,15 +53,6 @@ if(XCODE_BUILD)
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "${GPGFRONTEND_XOCDE_CODE_SIGN_IDENTITY}")
endif()
-# use system installed libraries or install it system wide
-if(MINGW AND NOT STABLE_BUILD_FULL_SDK)
- set_target_properties(gtest
- PROPERTIES
- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
- )
-endif()
-
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
# lib output path
set_target_properties(gpgfrontend_test PROPERTIES