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

[Merge][CMake] Merged revisions : 6619

Revision  r6619
.----------------------
Introduced doc target for building the documentation.
Right now only the buildsystem documentation is built.

.----------------------


[[Imported from SVN: r7161]]
parents d5c6ccda 81e509b5
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}")
set(DUNE_COMMON_VERSION_MINOR "${DUNE_VERSION_MINOR}")
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")
message("DUNE_USE_ONLY_STATIC_LIBS ${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)
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
add_definitions(-DHAVE_CONFIG_H)
# Create custom target for building the documentation
add_custom_target(doc)
# Create a custom target for building the tests.
# Thus they will not be built by make all any more.
# Actually I wanted this target to be a dependency
......
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
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