forked from GameDevTecnico/cubos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (26 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# CMakeLists.txt
# Cubos project root build configuration
cmake_minimum_required(VERSION 3.9.0)
project(cubos VERSION 0.1.0)
add_subdirectory(core)
add_subdirectory(engine)
add_subdirectory(tools)
# Add doxygen documentation
find_package(Doxygen COMPONENTS dot)
if (Doxygen_FOUND)
set(DOXYGEN_GENERATE_TREEVIEW YES)
set(DOXYGEN_PROJECT_NAME "CUBOS.")
set(DOXYGEN_HTML_EXTRA_FILES ${CMAKE_SOURCE_DIR}/docs/css/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js)
set(DOXYGEN_HTML_EXTRA_STYLESHEET ${CMAKE_SOURCE_DIR}/docs/css/doxygen-awesome-css/doxygen-awesome.css)
set(DOXYGEN_HTML_HEADER ${CMAKE_SOURCE_DIR}/docs/html/header.html)
set(DOXYGEN_HTML_FOOTER ${CMAKE_SOURCE_DIR}/docs/html/footer.html)
set(DOXYGEN_IMAGE_PATH ${CMAKE_SOURCE_DIR}/docs/images)
set(DOXYGEN_EXCLUDE_PATTERNS "css" "html")
doxygen_add_docs(
doxygen
"${CMAKE_SOURCE_DIR}/core/include"
"${CMAKE_SOURCE_DIR}/engine/include"
"${CMAKE_SOURCE_DIR}/docs"
COMMENT "Generate documentation"
)
endif ()