35 lines
824 B
CMake
35 lines
824 B
CMake
|
cmake_minimum_required(VERSION 3.15..3.30)
|
||
|
|
||
|
project(block
|
||
|
VERSION 0.1
|
||
|
LANGUAGES CXX)
|
||
|
|
||
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||
|
set_property(GLOBAL PROPERTY USE_FOLDERDS ON)
|
||
|
find_package(Doxygen)
|
||
|
if(Doxygen_FOUND)
|
||
|
#add_subdirectory(docs)
|
||
|
else()
|
||
|
message(STATUS "Doxygen not found, not building docs")
|
||
|
endif()
|
||
|
|
||
|
add_subdirectory(apps/)
|
||
|
|
||
|
endif()
|
||
|
|
||
|
include(FetchContent)
|
||
|
|
||
|
# Formatting library, adds fmt::fmt Always use the full git hash, not the tag,
|
||
|
# safer and faster to recompile
|
||
|
FetchContent_Declare(
|
||
|
vector
|
||
|
GIT_REPOSITORY https://concreteserver.ddns.net/gitea/CarboHydra/Vector.git
|
||
|
GIT_TAG main)
|
||
|
FetchContent_MakeAvailable(vector)
|
||
|
|
||
|
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
|
||
|
|
||
|
#add_executable(vector main.cpp)
|
||
|
|
||
|
#install(TARGETS vector RUNTIME DESTINATION bin)
|