Commit eb0f62be authored by Chris Müller's avatar Chris Müller

Setup API documentation generation with doxygen.

parent 8d88890f
cmake_minimum_required(VERSION 2.8)
project(crystal)
set(TARGET_NAME crystal)
set(DESCRIPTION "Crystal Core Libs")
set(BRIEF_DESCRIPTION "General purpose library for C")
set(VERSION "0.1")
include(${PROJECT_SOURCE_DIR}/macros/standard.cmake)
include_directories(src)
......
......@@ -2,3 +2,11 @@ include(${PROJECT_SOURCE_DIR}/macros/dependencies.cmake)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${PROJECT_SOURCE_DIR}/doxygen.in ${PROJECT_BINARY_DIR}/doxygen.settings @ONLY IMMEDIATE)
add_custom_target(docs COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doxygen.settings SOURCES ${PROJECT_BINARY_DIR}/doxygen.settings)
else()
message(STATUS Doxygen is not found on this installation. Api documentation is not generated.)
endif()
set(TARGET_NAME crystal)
set(DESCRIPTION "Crystal Core Libs")
set(VERSION "0.1")
set(SOURCES
matrix.c
unittest.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment