summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-22 14:25:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-01-22 14:25:36 (GMT)
commit1d9c539cf72e29014e1d03cdede0cd15e64426d7 (patch)
treeb044cdf5a4c0de9953642de22971502c86235cd8 /Tests
parentddb09ec8f91e7215d867c83d9229d3558bf2c166 (diff)
parentf98ae28e3dd633126e7897a593f2d15ba68a75d9 (diff)
downloadCMake-1d9c539cf72e29014e1d03cdede0cd15e64426d7.zip
CMake-1d9c539cf72e29014e1d03cdede0cd15e64426d7.tar.gz
CMake-1d9c539cf72e29014e1d03cdede0cd15e64426d7.tar.bz2
Merge topic 'test-fltk_wrap_ui'
f98ae28e Tests: Cover fltk_wrap_ui on an executable that links libraries
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Wrapping/CMakeLists.txt10
-rw-r--r--Tests/Wrapping/fltk2.fl0
-rw-r--r--Tests/Wrapping/wrapFLTK.c1
3 files changed, 7 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
#
diff --git a/Tests/Wrapping/fltk2.fl b/Tests/Wrapping/fltk2.fl
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/fltk2.fl
diff --git a/Tests/Wrapping/wrapFLTK.c b/Tests/Wrapping/wrapFLTK.c
new file mode 100644
index 0000000..78f2de1
--- /dev/null
+++ b/Tests/Wrapping/wrapFLTK.c
@@ -0,0 +1 @@
+int main(void) { return 0; }