2020-08-27 18:09:21 +02:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
|
|
class
|
2020-09-07 22:55:39 +02:00
|
|
|
GIT_REPOSITORY https://github.com/ohahn/class_public.git
|
2020-08-27 18:09:21 +02:00
|
|
|
GIT_TAG master
|
2020-09-10 20:38:23 +02:00
|
|
|
GIT_SHALLOW YES
|
2020-09-10 20:15:10 +02:00
|
|
|
GIT_PROGRESS TRUE
|
|
|
|
USES_TERMINAL_DOWNLOAD TRUE # <---- this is needed only for Ninja
|
2020-08-27 18:09:21 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_GetProperties(class)
|
|
|
|
if(NOT class_POPULATED)
|
2020-09-10 20:15:10 +02:00
|
|
|
set(FETCHCONTENT_QUIET OFF)
|
2020-08-27 18:09:21 +02:00
|
|
|
FetchContent_Populate(class)
|
|
|
|
add_subdirectory(${class_SOURCE_DIR} ${class_BINARY_DIR})
|
2020-09-07 22:55:39 +02:00
|
|
|
endif()
|