diff options
author | Brad King <brad.king@kitware.com> | 2016-01-21 18:42:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-21 18:42:46 (GMT) |
commit | f98ae28e3dd633126e7897a593f2d15ba68a75d9 (patch) | |
tree | 577c025acf1c624ebecbc2cce5ae9e4d9263b795 /Tests/Wrapping/CMakeLists.txt | |
parent | 750ae8d5a8890f5d8091105a0b03bee085cc4dff (diff) | |
download | CMake-f98ae28e3dd633126e7897a593f2d15ba68a75d9.zip CMake-f98ae28e3dd633126e7897a593f2d15ba68a75d9.tar.gz CMake-f98ae28e3dd633126e7897a593f2d15ba68a75d9.tar.bz2 |
Tests: Cover fltk_wrap_ui on an executable that links libraries
CMake 3.4 may crash on this case. The problem seems to have been
fixed since then, but keep it working by adding a test case now.
Reported-by: Gonzalo Garramuño <ggarra13@gmail.com>
Diffstat (limited to 'Tests/Wrapping/CMakeLists.txt')
-rw-r--r-- | Tests/Wrapping/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt index cbb28a1..aca36bc 100644 --- a/Tests/Wrapping/CMakeLists.txt +++ b/Tests/Wrapping/CMakeLists.txt @@ -85,16 +85,18 @@ endif () # Since FLTK_FLUID_EXE is supposed to create a .cxx/.h from a .fl/.fld, # create an empty one so that the dependencies can be met. # -set (FLTK_SRCS - fltk1.fl - ) add_executable(fakefluid fakefluid.cxx) set (FLTK_WRAP_UI "On") set (FLTK_FLUID_EXECUTABLE fakefluid) -fltk_wrap_ui (wraplibFLTK ${FLTK_SRCS}) +fltk_wrap_ui (wraplibFLTK fltk1.fl) add_library(wraplibFLTK ${wraplibFLTK_FLTK_UI_SRCS}) add_dependencies(wraplibFLTK fakefluid) add_dependencies(fakefluid Wrap) +fltk_wrap_ui (wrapFLTK fltk2.fl) +add_executable(wrapFLTK wrapFLTK.c ${wrapFLTK_FLTK_UI_SRCS}) +target_link_libraries(wrapFLTK wraplibFLTK) +add_dependencies(wrapFLTK fakefluid) + # # Mangled Mesa # |