1 cmake_minimum_required(VERSION 3.4)
5 set(CMAKE_CXX_STANDARD 14)
6 set(CMAKE_CXX_STANDARD_REQUIRED ON)
7 set(CMAKE_SKIP_RPATH ON)
9 option(BUILD_DOC "Build documentation" OFF)
11 add_subdirectory(libuuu)
15 # check if Doxygen is installed
18 # set input and output files
19 set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
20 set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
22 # request to configure the file
23 configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
24 message("Doxygen build started")
26 # note the option ALL which allows to build the docs together with the application
27 add_custom_target( doc_doxygen ALL
28 COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
29 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
30 COMMENT "Generating documentation with Doxygen"
33 message("Doxygen need to be installed to generate the doxygen documentation")