[CMake] Fix creation of example directory when copying support files.

This was a regression introduced in svn r 10573 that affects new builds,
when the target directory for test files (bin/examples) doesn't exist yet.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2015-02-13 12:16:38 +00:00
parent 75b4a349c6
commit 24dd515f30

View File

@ -108,7 +108,10 @@ endif(FLTK_HAVE_CAIRO)
# - demo.menu: help (help-test.html) can't find its images (not copied)
# - maybe more ...
configure_file(demo.menu ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
# use a target filename to make sure the target directory gets created
configure_file(demo.menu ${EXECUTABLE_OUTPUT_PATH}/demo.menu COPYONLY)
# use target directory only to avoid redundancy
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)