mirror of
https://github.com/USCiLab/cereal.git
synced 2025-07-20 17:52:00 +02:00

* cleanup cmake files to be a little more moderen keep the source tree free of build artifacts cmakelint the cmake files too * fix cmake setup errors on CI fix APPLE clang builds too * CI needs support for realy history cmake V3.6 fix typo in cmake files using add_test() commnds * One step more to use modern cmake Prevent to modifiy compile and linker FLAGS and to set global includes pathes * fix CI build problems with older cmake versions prepare cleanup cmake list file * final cleanup use Config.cmake.in and install hole cmake config files * Fix cpp17 PORTABILITY_TEST linker problem add missed target_link_libraries() * hopefully prevent windows test problems
19 lines
677 B
CMake
19 lines
677 B
CMake
find_package(Doxygen)
|
|
if(DOXYGEN_FOUND)
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doxygen.in" "${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg" @ONLY)
|
|
add_custom_target(doc
|
|
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg"
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.."
|
|
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
)
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../scripts/updatedoc.in" "${CMAKE_CURRENT_BINARY_DIR}/updatedoc.sh" @ONLY)
|
|
add_custom_target(update-doc
|
|
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/updatedoc.sh"
|
|
DEPENDS doc
|
|
COMMENT "Copying documentation to gh-pages branch" VERBATIM
|
|
)
|
|
|
|
endif()
|