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)
|
|
|
|
|
2022-03-01 16:58:47 -05:00
|
|
|
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)
|
|
|
|
|
2022-03-01 16:58:47 -05:00
|
|
|
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()
|