____ __ ____ ____ _ _
__ _ <em><strong>|</strong></em> \ / _| _ / <em><strong>|</strong></em> _ __ <em><strong>/ ___| ___ _ <strong>(_)_ __ | |_
/ <em>` |/ _ \ __) | |(_|</em>) | / _ \| '</strong>/ _ ___ \ / __| '__| | '_ \| __|
| (_| | __// __/| _| _| |__| (_) | | | __/</strong></em>) | (__| | | | |_) | |_
__,_|___|_____|_|(_|_)_______/|_| ___|____/ ___|_| |_| .__/ __|
|_|
ae2f::CoreScript
CMake Utility for project ae2f.
Supports library fetch & tent for installing
Example usage (Simple)
Use this
# Set this source directory as the tree root for project.
set(ae2f_ProjRoot ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Tree root for project")
set(ae2f_submod .submod CACHE STRING "Relative path to submodule (subdirectory)")
set(ae2f_CoreScript_Wh ${ae2f_ProjRoot}/${ae2f_submod}/ae2f/CoreScript)
# Execute git to fetch CoreScript when repository does not exist
if(NOT EXISTS ${ae2f_CoreScript_Wh})
execute_process(
COMMAND git clone https://codeberg.org/ae2f/CoreScript
${ae2f_CoreScript_Wh}
)
endif()
# add subdirectory
if(NOT TARGET ae2f::CoreScript)
add_subdirectory(${ae2f_CoreScript_Wh} ${ae2f_submod}/ae2f/CoreScript)
endif()