diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2015-11-02 13:15:20 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2015-11-02 13:15:20 -0500 |
commit | 06dfd985214afa017a6718b3b3a627bf27e46fa3 (patch) | |
tree | 877b417164d4fbd1e0be267884c28714ef22c896 /indra/doxygen/CMakeLists.txt | |
parent | 20edd5f5f06814f36c56e5fbaa4b4a6cd3fe5a42 (diff) | |
parent | 848c1909c5879ac2ef2a5d40c756269aa0a40179 (diff) |
Automated merge with ssh://bitbucket.org/nat_linden/viewer-tools-update
Diffstat (limited to 'indra/doxygen/CMakeLists.txt')
-rwxr-xr-x | indra/doxygen/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/doxygen/CMakeLists.txt b/indra/doxygen/CMakeLists.txt new file mode 100755 index 0000000000..84188bd32f --- /dev/null +++ b/indra/doxygen/CMakeLists.txt @@ -0,0 +1,28 @@ +# -*- cmake -*- + +# cmake_minimum_required should appear before any +# other commands to guarantee full compatibility +# with the version specified +## prior to 2.8, the add_custom_target commands used in setting the version did not work correctly +cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) + +set(ROOT_PROJECT_NAME "SecondLife" CACHE STRING + "The root project/makefile/solution name. Defaults to SecondLife.") +project(${ROOT_PROJECT_NAME}) + +set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") + +include(Variables) + +# add a target to generate API documentation with Doxygen +find_package(Doxygen) +if(DOXYGEN_FOUND) + GET_FILENAME_COMPONENT(DOXYGEN_TOP_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/.. PATH) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) + add_custom_target(doc + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/.. + COMMENT "Generating API documentation with Doxygen" VERBATIM + ) +endif(DOXYGEN_FOUND) + |