Vector/CMakeLists.txt

35 lines
797 B
CMake
Raw Normal View History

2024-07-07 17:17:26 +02:00
cmake_minimum_required(VERSION 3.15..3.30)
2024-07-07 13:06:04 +02:00
2024-07-07 17:17:26 +02:00
project(vector
VERSION 0.1
LANGUAGES CXX)
2024-07-07 13:06:04 +02:00
2024-07-07 17:17:26 +02:00
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()
2024-07-07 13:06:04 +02:00
2024-07-07 17:17:26 +02:00
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(
# fmtlib
# GIT_REPOSITORY https://github.com/fmtlib/fmt.git
# GIT_TAG 8.0.1)
#FetchContent_MakeAvailable(fmtlib)
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
#add_executable(vector main.cpp)
#install(TARGETS vector RUNTIME DESTINATION bin)