[CMake] Copy support files for demo programs to build directory (incomplete).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2015-02-11 15:15:46 +00:00
parent eb82b2fb9a
commit 5b801eae16
1 changed files with 14 additions and 0 deletions

View File

@ -99,3 +99,17 @@ endif(OPENGL_FOUND)
if(FLTK_HAVE_CAIRO)
CREATE_EXAMPLE(cairo_test cairo_test.cxx "fltk;fltk_cairo")
endif(FLTK_HAVE_CAIRO)
# We need some support files for the demo programs:
# Note: this is incomplete as of 11 Feb 2015
# Todo: currently all files are copied, but some of them need configuration:
# - demo.menu: fluid can't be started (wrong path)
# - demo.menu: help (help-test.html) can't find its images (not copied)
# - maybe more ...
configure_file(demo.menu ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(rgb.txt ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(help-test.html ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(browser.cxx ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(editor.cxx ${EXECUTABLE_OUTPUT_PATH} COPYONLY)