Skip to content
Snippets Groups Projects
Commit a3590f0f authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

add new lines to gitingore

parent bfa63006
No related branches found
No related tags found
No related merge requests found
build/
# build files
builds/
cmake-build-debug/
cmake-build-debug-coverage/
cmake-build-debug-coverage-event-trace/
cmake-build-*
imgui.ini
.flatpak-builder/
compile_commands.json
# dotfiles
# dotfiles (IDE)
.idea/
.cache/
.venv/
# windows vs stuff
# windows visual studio
.vs/
CMakePresets.json
CMakeSettings.json
......@@ -4,6 +4,9 @@ set(namespace "fggl")
set(CMAKE_CXX_STANDARD 20)
option(FGGL_CONAN "Should we use conan to find missing dependencies?" OFF)
option(FGGL_EXAMPLES "Should we build examples or just the library" ON)
option(FGGL_DOCS "Should we build documentation?" ON)
set(CONAN_BUILD_TYPE "Debug")
# Define the project
......@@ -22,11 +25,13 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
# Documentation support
find_package(Doxygen)
if (Doxygen_FOUND)
add_subdirectory( docs )
else()
message(STATUS "Doxygen not found, not building docs")
if (FGGL_DOCS)
find_package(Doxygen)
if (Doxygen_FOUND)
add_subdirectory( docs )
else()
message(STATUS "Doxygen not found, not building docs")
endif()
endif()
endif()
......@@ -54,7 +59,9 @@ target_compile_options( ${PROJECT_NAME} PRIVATE -Wall -fno-strict-aliasing -fno-
# extras
#add_subdirectory(tests)
add_subdirectory(demo)
if (FGGL_EXAMPLES)
add_subdirectory(demo)
endif()
##
# INSTALL PHASE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment