diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-01-10 20:49:03 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-01-10 20:49:03 +0000 |
| commit | 7aef0cad39e55e6fb18917cf80ddb7aa433b1180 (patch) | |
| tree | 682ab60af955d291104d03a0c4f4d89934c5b6b8 /test | |
| parent | b47dc05909a5c00ef34847c3550b82eebaaad749 (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 'test')
| -rw-r--r-- | test/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e118d7c86..cc51d88bc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,7 +3,7 @@ # # CMakeLists.txt used to build test and demo apps by the CMake build system # -# Copyright 2004-2017 by Bill Spitzak and others. +# Copyright 2004-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 @@ -17,7 +17,7 @@ # ####################################################################### -set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin/examples) +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../bin/examples) ####################################################################### # audio libs for test apps |
