From: <ai...@us...> - 2010-03-03 23:32:48
|
Revision: 10840 http://plplot.svn.sourceforge.net/plplot/?rev=10840&view=rev Author: airwin Date: 2010-03-03 23:32:41 +0000 (Wed, 03 Mar 2010) Log Message: ----------- Add the test_tk_plgrid interactive target that tests the plgrid.tcl example under plserver. This works for both the build tree and the CMake-based build system for the installed examples tree. Modified Paths: -------------- trunk/examples/CMakeLists.txt trunk/examples/tk/CMakeLists.txt Added Paths: ----------- trunk/examples/tk/plgrid.in Modified: trunk/examples/CMakeLists.txt =================================================================== --- trunk/examples/CMakeLists.txt 2010-03-03 12:44:08 UTC (rev 10839) +++ trunk/examples/CMakeLists.txt 2010-03-03 23:32:41 UTC (rev 10840) @@ -708,6 +708,27 @@ ) list(APPEND targets_examples_tk test_tk_03) + if(CORE_BUILD) + add_custom_target(test_tk_plgrid + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tk/plgrid + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tcl + ) + else(CORE_BUILD) + add_custom_target(test_tk_plgrid + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tk/plgrid + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tcl + ) + endif(CORE_BUILD) + + add_dependencies(test_tk_plgrid + plserver + tcl_examples + tclIndex_tcl + tclIndex_tk + xwin + ) + list(APPEND targets_examples_tk test_tk_plgrid) + if(ENABLE_itk) add_custom_target(test_tk_02 COMMAND xtk02 -f ${CMAKE_CURRENT_BINARY_DIR}/tk/tk02 Modified: trunk/examples/tk/CMakeLists.txt =================================================================== --- trunk/examples/tk/CMakeLists.txt 2010-03-03 12:44:08 UTC (rev 10839) +++ trunk/examples/tk/CMakeLists.txt 2010-03-03 23:32:41 UTC (rev 10840) @@ -164,7 +164,9 @@ # xtk02, and xtk04. # The third example is run with the configured shell script, tk03, which # invokes plserver. -set(tk_SCRIPTS tk01.in tk03.in) +# plgrid is a configured shell script that runs the plgrid.tcl example +# (N.B., in the tcl directory) using plserver. +set(tk_SCRIPTS tk01.in tk03.in plgrid.in) get_target_property(xtk01_LOCATION xtk01 LOCATION) get_target_property(plserver_LOCATION plserver LOCATION) @@ -178,6 +180,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/tk03 @ONLY ) +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/plgrid.in + ${CMAKE_CURRENT_BINARY_DIR}/plgrid + @ONLY +) # The second and fourth Tk examples depend on Itk to work. if(ENABLE_itk) list(APPEND tk_SCRIPTS tk02.in tk04.in) Copied: trunk/examples/tk/plgrid.in (from rev 10838, trunk/examples/tk/tk03.in) =================================================================== --- trunk/examples/tk/plgrid.in (rev 0) +++ trunk/examples/tk/plgrid.in 2010-03-03 23:32:41 UTC (rev 10840) @@ -0,0 +1,10 @@ +#!/bin/sh +# Run plserver example for plgrid.tcl. N.B. must be run in ../tcl directory. +@plserver_LOCATION@ <<EOF +plstdwin . +plxframe .plw +pack append . .plw {left expand fill} +source plgrid.tcl +proc 1 {} "plgrid .plw.plwin" +1 +EOF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |