forked from libgeos/geos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Doxygen "docs" target to CMake build
Must be explicitly enabled using -DBUILD_DOCUMENTATION=YES Direct all warnings to a log file that can be grepped for specific errors as part of a CI build. Fixes libgeos#902
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# Part of CMake configuration for GEOS | ||
# | ||
# Copyright (C) 2018 Mateusz Loskot <[email protected]> | ||
# Copyright (C) 2019 Daniel Baston <[email protected]> | ||
# | ||
# This is free software; you can redistribute and/or modify it under | ||
# the terms of the GNU Lesser General Public Licence as published | ||
|
@@ -15,3 +16,24 @@ target_link_libraries(example PRIVATE geos) | |
target_include_directories(test_geos_unit | ||
PRIVATE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>) | ||
|
||
option(BUILD_DOCUMENTATION "Build Doxygen documentation" OFF) | ||
|
||
if(BUILD_DOCUMENTATION) | ||
find_package(Doxygen) | ||
|
||
if(NOT DOXYGEN_FOUND) | ||
message(FATAL_ERROR "Doxygen was not found.") | ||
endif() | ||
|
||
set(srcdir ${CMAKE_CURRENT_SOURCE_DIR}) | ||
set(DOXYGEN_LOGFILE ${CMAKE_CURRENT_BINARY_DIR}/doxygen_log) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in | ||
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | ||
@ONLY) | ||
unset(srcdir) | ||
unset(DOXYGEN_LOGFILE) | ||
|
||
add_custom_target(docs | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters