1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

Adding CMakeModules/libeoskeygen.cmake

This commit is contained in:
Henrik Hautakoski 2020-03-23 13:38:30 +01:00
parent ddc1af8957
commit 6c26ce8ac6

View 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()