summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-01-10 20:49:03 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-01-10 20:49:03 +0000
commit7aef0cad39e55e6fb18917cf80ddb7aa433b1180 (patch)
tree682ab60af955d291104d03a0c4f4d89934c5b6b8 /documentation
parentb47dc05909a5c00ef34847c3550b82eebaaad749 (diff)
CMake: enable building FLTK in a subdirectory of another project.
Basically replace CMAKE_XXX_DIR with CMAKE_CURRENT_XXX_DIR where XXX = SOURCE or BINARY. Patch proposal by cleanrock, FLTK PR #4: https://github.com/fltk/test-only/pull/4 Patch modified to fix target dirs for test programs and doxygen docs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/CMakeLists.txt6
-rw-r--r--documentation/Doxyfile.in20
2 files changed, 13 insertions, 13 deletions
diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt
index 08a8493ab..f5b82dfb7 100644
--- a/documentation/CMakeLists.txt
+++ b/documentation/CMakeLists.txt
@@ -3,7 +3,7 @@
#
# CMakeLists.txt to build docs for the FLTK project using CMake (www.cmake.org)
#
-# Copyright 1998-2015 by Bill Spitzak and others.
+# Copyright 1998-2018 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
@@ -123,7 +123,7 @@ endif (DOCS)
if(OPTION_INSTALL_HTML_DOCUMENTATION AND OPTION_BUILD_HTML_DOCUMENTATION)
- install(DIRECTORY ${CMAKE_BINARY_DIR}/documentation/html
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
DESTINATION ${FLTK_DATADIR}/doc/fltk
)
@@ -131,7 +131,7 @@ endif(OPTION_INSTALL_HTML_DOCUMENTATION AND OPTION_BUILD_HTML_DOCUMENTATION)
if(OPTION_INSTALL_PDF_DOCUMENTATION AND OPTION_BUILD_PDF_DOCUMENTATION)
- install(FILES ${CMAKE_BINARY_DIR}/documentation/fltk.pdf
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/fltk.pdf
DESTINATION ${FLTK_DATADIR}/doc/fltk/
)
diff --git a/documentation/Doxyfile.in b/documentation/Doxyfile.in
index b3e22c687..3faed9254 100644
--- a/documentation/Doxyfile.in
+++ b/documentation/Doxyfile.in
@@ -565,9 +565,9 @@ INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/opengl.dox
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/fluid.dox
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/advanced.dox
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/unicode.dox
-INPUT += @CMAKE_SOURCE_DIR@/FL
-INPUT += @CMAKE_SOURCE_DIR@/src
-INPUT += @CMAKE_SOURCE_DIR@/cairo
+INPUT += @FLTK_SOURCE_DIR@/FL
+INPUT += @FLTK_SOURCE_DIR@/src
+INPUT += @FLTK_SOURCE_DIR@/cairo
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/enumerations.dox
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/glut.dox
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/src/forms.dox
@@ -610,13 +610,13 @@ RECURSIVE = YES
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
-EXCLUDE = @CMAKE_SOURCE_DIR@/src/drivers/
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/fl_dnd_win32.cxx
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/fl_dnd_x.cxx
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/fl_font_mac.cxx
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/fl_font_win32.cxx
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/Fl_get_key_mac.cxx
-EXCLUDE += @CMAKE_SOURCE_DIR@/src/Fl_get_key_win32.cxx
+EXCLUDE = @FLTK_SOURCE_DIR@/src/drivers/
+EXCLUDE += @FLTK_SOURCE_DIR@/src/fl_dnd_win32.cxx
+EXCLUDE += @FLTK_SOURCE_DIR@/src/fl_dnd_x.cxx
+EXCLUDE += @FLTK_SOURCE_DIR@/src/fl_font_mac.cxx
+EXCLUDE += @FLTK_SOURCE_DIR@/src/fl_font_win32.cxx
+EXCLUDE += @FLTK_SOURCE_DIR@/src/Fl_get_key_mac.cxx
+EXCLUDE += @FLTK_SOURCE_DIR@/src/Fl_get_key_win32.cxx
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded