From: <ai...@us...> - 2009-10-24 23:46:28
|
Revision: 10550 http://plplot.svn.sourceforge.net/plplot/?rev=10550&view=rev Author: airwin Date: 2009-10-24 23:46:18 +0000 (Sat, 24 Oct 2009) Log Message: ----------- Create test_extXdrawable target and add it to dependencies of test_interactive. Modified Paths: -------------- trunk/examples/CMakeLists.txt Modified: trunk/examples/CMakeLists.txt =================================================================== --- trunk/examples/CMakeLists.txt 2009-10-24 20:36:39 UTC (rev 10549) +++ trunk/examples/CMakeLists.txt 2009-10-24 23:46:18 UTC (rev 10550) @@ -586,14 +586,21 @@ list(APPEND interactive_targets_LIST test_c_${device}) endforeach(interactive_devices_info ${INTERACTIVE_DEVICES_LIST}) - add_custom_target(test_interactive) - if(interactive_targets_LIST) - add_dependencies(test_interactive ${interactive_targets_LIST}) - endif(interactive_targets_LIST) + if(PLD_extcairo) + get_target_property(extXdrawable_demo_LOCATION extXdrawable_demo LOCATION) + add_custom_target(test_extXdrawable + COMMAND ${extXdrawable_demo_LOCATION} + DEPENDS extXdrawable_demo + ) + list(APPEND interactive_targets_LIST test_extXdrawable) + endif(PLD_extcairo) endif(ENABLE_c) - set(interactive_targets_LIST ${targets_examples_c}) + add_custom_target(test_interactive) + if(interactive_targets_LIST) + add_dependencies(test_interactive ${interactive_targets_LIST}) + endif(interactive_targets_LIST) if(targets_examples_tk) list(APPEND interactive_targets_LIST ${targets_examples_tk}) @@ -629,14 +636,6 @@ list(APPEND interactive_targets_LIST ${target_qt_example}) endif(target_qt_example) -# add_custom_target(test_interactive -# COMMAND SRC_EXAMPLES_DIR=${CMAKE_CURRENT_SOURCE_DIR} EXAMPLES_DIR=${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/plplot-test-interactive.sh -# ) - -# if(interactive_targets_LIST) -# add_dependencies(test_interactive ${interactive_targets_LIST}) -# endif(interactive_targets_LIST) - endif(BUILD_TEST) if(NOT CORE_BUILD) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |