Skip to content

Commit

Permalink
Merge pull request olive-editor#759 from eszlari/cmake-doxy
Browse files Browse the repository at this point in the history
cmake: add doxygen
  • Loading branch information
itsmattkc authored May 2, 2019
2 parents f81df00 + 3ef31f4 commit 1e3cf53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2,568 deletions.
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)

project(olive-editor LANGUAGES CXX)

option(BUILD_DOXYGEN "Build Doxygen documentation" OFF)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand Down Expand Up @@ -77,6 +79,8 @@ else()
message("Olive: No git hash defined!")
endif()

find_package(Doxygen)

set(OLIVE_SOURCES
dialogs/aboutdialog.cpp
dialogs/aboutdialog.h
Expand Down Expand Up @@ -463,6 +467,14 @@ if(WIN32 AND OPENCOLORIO_FOUND)
target_link_libraries(${OLIVE_TARGET} PRIVATE OpenColorIO)
endif()

if(DOXYGEN_FOUND AND BUILD_DOXYGEN)
set(DOXYGEN_PROJECT_NAME "Olive")
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/docs")
set(DOXYGEN_EXTRACT_ALL "YES")
set(DOXYGEN_EXTRACT_PRIVATE "YES")
doxygen_add_docs(docs ALL ${OLIVE_SOURCES})
endif()

if(UNIX AND NOT APPLE)
install(TARGETS ${OLIVE_TARGET} RUNTIME DESTINATION bin)
install(FILES ${OLIVE_EFFECTS} DESTINATION share/olive-editor/effects)
Expand Down
Loading

0 comments on commit 1e3cf53

Please sign in to comment.