cmake/Tests/RunCMake/CMP0150/CMakeLists.txt.in
2023-07-02 19:51:09 +02:00

24 lines
588 B
CMake

cmake_minimum_required(VERSION 3.25)
project(@projName@ LANGUAGES NONE)
@policyCommand@
include(ExternalProject)
ExternalProject_Add(ep-@depName@
GIT_REPOSITORY @epRelativeGitRepo@
GIT_TAG master
GIT_CONFIG init.defaultBranch=master
TEST_COMMAND ""
INSTALL_COMMAND "${CMAKE_COMMAND}" -E echo "ExternalProject for ep-@depName@"
)
include(FetchContent)
FetchContent_Declare(@depName@
GIT_REPOSITORY @fcRelativeGitRepo@
GIT_TAG master
GIT_CONFIG init.defaultBranch=master
)
FetchContent_MakeAvailable(@depName@)
message(STATUS "Completed configuring project @projName@")