1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 21:07:45 +00:00
astra/external/CMakeLists.txt

33 lines
958 B
Text
Raw Normal View History

2021-11-01 09:54:58 -04:00
include(FetchContent)
2022-03-01 16:43:49 -05:00
if(NOT TARGET Qt5Keychain::Qt5Keychain)
FetchContent_Declare(
qtkeychain
GIT_REPOSITORY https://github.com/frankosterfeld/qtkeychain.git
GIT_TAG v0.12.0
)
set(BUILD_WITH_QT6 OFF CACHE BOOL "" FORCE)
set(QTKEYCHAIN_STATIC ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(qtkeychain)
set(LIBRARIES qt5keychain ${LIBRARIES} PARENT_SCOPE)
2022-03-01 16:43:49 -05:00
set(KEYCHAIN_INCLUDE_DIRS
${CMAKE_BINARY_DIR}/_deps/qtkeychain-src
${CMAKE_BINARY_DIR}/_deps/qtkeychain-build PARENT_SCOPE)
endif()
if(NOT TARGET QuaZip::QuaZip)
FetchContent_Declare(
quazip
GIT_REPOSITORY https://github.com/stachenov/quazip.git
GIT_TAG v1.2
)
FetchContent_MakeAvailable(quazip)
set(LIBRARIES QuaZip ${LIBRARIES} PARENT_SCOPE)
2022-03-01 16:43:49 -05:00
set(QUAZIP_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/_deps/quazip-src/quazip PARENT_SCOPE)
endif()