mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
Adding CMakeModules/libeoskeygen.cmake
This commit is contained in:
parent
ddc1af8957
commit
6c26ce8ac6
1 changed files with 25 additions and 0 deletions
25
CMakeModules/libeoskeygen.cmake
Normal file
25
CMakeModules/libeoskeygen.cmake
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
# If we have a custom libeoskeygen
|
||||||
|
if(CUSTOM_LIBEOSKEYGEN)
|
||||||
|
|
||||||
|
message ("Using libeoskeygen in: ${CUSTOM_LIBEOSKEYGEN}")
|
||||||
|
|
||||||
|
# Include targets.
|
||||||
|
include(${CUSTOM_LIBEOSKEYGEN}/libeoskeygenTargets.cmake)
|
||||||
|
else()
|
||||||
|
|
||||||
|
# TODO: find_package() here if libeoskeygen is installed on the system.
|
||||||
|
# otherwise we will download with FetchContent.
|
||||||
|
|
||||||
|
message ("Using libeoskeygen from: https://github.com/eosswedenorg/libeoskeygen.git")
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
|
FetchContent_Declare(
|
||||||
|
libeoskeygen
|
||||||
|
GIT_REPOSITORY https://github.com/eosswedenorg/libeoskeygen.git
|
||||||
|
GIT_TAG master
|
||||||
|
)
|
||||||
|
|
||||||
|
FetchContent_MakeAvailable(libeoskeygen)
|
||||||
|
|
||||||
|
endif()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue