2020-08-13 00:52:02 +02:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
|
|
genericio
|
2024-03-12 22:20:07 +01:00
|
|
|
GIT_REPOSITORY https://git.cels.anl.gov/hacc/genericio.git
|
2020-08-13 00:52:02 +02:00
|
|
|
GIT_TAG master
|
2020-09-10 20:38:23 +02:00
|
|
|
GIT_SHALLOW YES
|
|
|
|
GIT_PROGRESS TRUE
|
|
|
|
USES_TERMINAL_DOWNLOAD TRUE # <---- this is needed only for Ninja
|
2020-08-13 00:52:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_GetProperties(genericio)
|
|
|
|
if(NOT genericio_POPULATED)
|
2020-09-10 20:38:23 +02:00
|
|
|
set(FETCHCONTENT_QUIET OFF)
|
2020-08-13 00:52:02 +02:00
|
|
|
FetchContent_Populate(genericio)
|
|
|
|
add_subdirectory(${genericio_SOURCE_DIR} ${genericio_BINARY_DIR})
|
|
|
|
endif()
|