35 lines
797 B
CMake
35 lines
797 B
CMake
cmake_minimum_required(VERSION 3.15..3.30)
|
|
|
|
project(vector
|
|
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(
|
|
# 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)
|