|
From: <ai...@us...> - 2009-10-27 19:49:17
|
Revision: 10557
http://plplot.svn.sourceforge.net/plplot/?rev=10557&view=rev
Author: airwin
Date: 2009-10-27 19:49:11 +0000 (Tue, 27 Oct 2009)
Log Message:
-----------
Move to style which uses targets for COMMANDs for all special targets
used in tests.
extXdrawable_demo depends on PLD_xcairo and not PLD_extcairo.
Add test_plplotcanvas_demo and test_plplotcanvas_animation interactive
targets. (These complete the tests of all special targets compiled in
the c subdirectory.)
Modified Paths:
--------------
trunk/examples/CMakeLists.txt
Modified: trunk/examples/CMakeLists.txt
===================================================================
--- trunk/examples/CMakeLists.txt 2009-10-27 19:44:54 UTC (rev 10556)
+++ trunk/examples/CMakeLists.txt 2009-10-27 19:49:11 UTC (rev 10557)
@@ -545,16 +545,17 @@
endforeach(file_devices_info ${FILE_DEVICES_LIST})
if(PLD_extcairo)
- get_target_property(ext-cairo-test_LOCATION ext-cairo-test LOCATION)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ext-cairo-test.ps
- COMMAND ${ext-cairo-test_LOCATION}
- DEPENDS ext-cairo-test
+ COMMAND ext-cairo-test
+ DEPENDS
+ ext-cairo-test
+ cairo
)
- add_custom_target(test_c_extcairo
+ add_custom_target(test_extcairo
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ext-cairo-test.ps
)
- list(APPEND noninteractive_targets_LIST test_c_extcairo)
+ list(APPEND noninteractive_targets_LIST test_extcairo)
endif(PLD_extcairo)
add_custom_target(test_noninteractive)
@@ -586,15 +587,34 @@
list(APPEND interactive_targets_LIST test_c_${device})
endforeach(interactive_devices_info ${INTERACTIVE_DEVICES_LIST})
- if(PLD_extcairo)
- get_target_property(extXdrawable_demo_LOCATION extXdrawable_demo LOCATION)
+ if(PLD_xcairo)
add_custom_target(test_extXdrawable
- COMMAND ${extXdrawable_demo_LOCATION}
- DEPENDS extXdrawable_demo
+ COMMAND extXdrawable_demo
+ DEPENDS
+ extXdrawable_demo
+ cairo
)
list(APPEND interactive_targets_LIST test_extXdrawable)
- endif(PLD_extcairo)
+ endif(PLD_xcairo)
+ if(ENABLE_gnome2)
+ add_custom_target(test_plplotcanvas_demo
+ COMMAND plplotcanvas_demo
+ DEPENDS
+ plplotcanvas_demo
+ gcw
+ )
+ list(APPEND interactive_targets_LIST test_plplotcanvas_demo)
+
+ add_custom_target(test_plplotcanvas_animation
+ COMMAND plplotcanvas_animation
+ DEPENDS
+ plplotcanvas_animation
+ gcw
+ )
+ list(APPEND interactive_targets_LIST test_plplotcanvas_animation)
+ endif(ENABLE_gnome2)
+
endif(ENABLE_c)
add_custom_target(test_interactive)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|