Skip to content
Snippets Groups Projects
Commit 81e509b5 authored by Markus Blatt's avatar Markus Blatt
Browse files

Introduced doc target for building the documentation.

Right now only the buildsystem documentation is built.

[[Imported from SVN: r6619]]
parent 58204620
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ set(DUNE_COMMON_VERSION_MAJOR "${DUNE_VERSION_MAJOR}") ...@@ -16,6 +16,8 @@ set(DUNE_COMMON_VERSION_MAJOR "${DUNE_VERSION_MAJOR}")
set(DUNE_COMMON_VERSION_MINOR "${DUNE_VERSION_MINOR}") set(DUNE_COMMON_VERSION_MINOR "${DUNE_VERSION_MINOR}")
set(DUNE_COMMON_VERSION_REVISION "${DUNE_VERSION_REVISION}") set(DUNE_COMMON_VERSION_REVISION "${DUNE_VERSION_REVISION}")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
option("DUNE_USE_ONLY_STATIC_LIBS" "If set to ON, we will force static linkage everywhere") option("DUNE_USE_ONLY_STATIC_LIBS" "If set to ON, we will force static linkage everywhere")
message("DUNE_USE_ONLY_STATIC_LIBS ${DUNE_USE_ONLY_STATIC_LIBS}") message("DUNE_USE_ONLY_STATIC_LIBS ${DUNE_USE_ONLY_STATIC_LIBS}")
if(DUNE_USE_ONLY_STATIC_LIBS) if(DUNE_USE_ONLY_STATIC_LIBS)
...@@ -73,6 +75,9 @@ configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) ...@@ -73,6 +75,9 @@ configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
include_directories("${CMAKE_CURRENT_BINARY_DIR}") include_directories("${CMAKE_CURRENT_BINARY_DIR}")
add_definitions(-DHAVE_CONFIG_H) add_definitions(-DHAVE_CONFIG_H)
# Create custom target for building the documentation
add_custom_target(doc)
# Create a custom target for building the tests. # Create a custom target for building the tests.
# Thus they will not be built by make all any more. # Thus they will not be built by make all any more.
# Actually I wanted this target to be a dependency # Actually I wanted this target to be a dependency
......
include(UseLATEX) include(UseLATEX)
ADD_LATEX_DOCUMENT(buildsystem.tex DEFAULT_PDF INPUTS ../Makefile.am ../../configure.ac ../example.opts) ADD_LATEX_DOCUMENT(buildsystem.tex FATHER_TARGET doc DEFAULT_PDF INPUTS ../Makefile.am ../../configure.ac ../example.opts)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf install(FILES ${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf
DESTINATION share/doc/dune-common/buildsystem) DESTINATION share/doc/dune-common/buildsystem)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment