removed Doxygen from release build
This commit is contained in:
parent
4c212907c2
commit
e01334a566
@ -5,5 +5,4 @@ jobs:
|
||||
- image: purplekarrot/gcc-8
|
||||
steps:
|
||||
- checkout
|
||||
- run: apt-get update && apt-get install -y doxygen doxygen-docs doxygen-latex doxygen-gui graphviz
|
||||
- run: cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j
|
||||
|
@ -13,11 +13,6 @@ addons:
|
||||
packages:
|
||||
- g++-7
|
||||
- clang-5.0
|
||||
- doxygen
|
||||
- doxygen-doc
|
||||
- doxygen-latex
|
||||
- doxygen-gui
|
||||
- graphviz
|
||||
|
||||
matrix:
|
||||
include:
|
||||
@ -53,7 +48,6 @@ matrix:
|
||||
# BIN_DIR=bin
|
||||
# before_install:
|
||||
# - brew update
|
||||
# - brew install doxygen graphviz
|
||||
# install:
|
||||
# brew upgrade cmake
|
||||
# - os: osx
|
||||
|
@ -34,26 +34,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "../debug/")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_COVERAGE_COMPILE_FLAGS}")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CXX_COVERAGE_COMPILE_FLAGS}")
|
||||
|
||||
# indicate the doc build as an option, ON by default
|
||||
if(CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")
|
||||
option(BUILD_DOC "Build documentation" ON)
|
||||
find_package(Doxygen
|
||||
REQUIRED dot)
|
||||
if(DOXYGEN_FOUND)
|
||||
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in)
|
||||
set(DOXYGEN_OUT ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile)
|
||||
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
|
||||
message("Doxygen build started")
|
||||
add_custom_target(docs ALL
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating API documentation with Doxygen"
|
||||
VERBATIM )
|
||||
else()
|
||||
message("Doxygen needs to be installed to generate the doxygen documentation.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include_directories(includes)
|
||||
file(GLOB SOURCES "src/*.cc")
|
||||
add_executable(${TGT} ${SOURCES})
|
||||
|
Loading…
Reference in New Issue
Block a user