From: <ai...@us...> - 2009-05-30 16:39:49
|
Revision: 10016 http://plplot.svn.sourceforge.net/plplot/?rev=10016&view=rev Author: airwin Date: 2009-05-30 16:39:47 +0000 (Sat, 30 May 2009) Log Message: ----------- Build extXdrawable_demo with new CMake-based build system for installed examples. Modified Paths: -------------- trunk/examples/c/CMakeLists.txt_installed_examples_c trunk/examples/plplot_configure.cmake_installed_examples.in Modified: trunk/examples/c/CMakeLists.txt_installed_examples_c =================================================================== --- trunk/examples/c/CMakeLists.txt_installed_examples_c 2009-05-30 16:18:58 UTC (rev 10015) +++ trunk/examples/c/CMakeLists.txt_installed_examples_c 2009-05-30 16:39:47 UTC (rev 10016) @@ -110,6 +110,22 @@ target_link_libraries(plplotcanvas_animation ${GNOMEPRINTUI_LINK_FLAGS} ${GTHREAD_2.0_LINK_FLAGS} plplotgnome2${LIB_TAG}) endif(ENABLE_plplotcanvas_animation) endif(ENABLE_gnome2) + if(PLD_xcairo) + pkg_check_pkgconfig(gtk+-x11-2.0 includedir libdir linkflags3 cflags3 version1 _GTK_X11) + if(linkflags3) + # Requires blank-delimited list. + string(REGEX REPLACE ";" " " GTK_X11_COMPILE_FLAGS "${cflags3}") + set(GTK_X11_LINK_FLAGS "${linkflags3}") + set_source_files_properties( + extXdrawable_demo.c + PROPERTIES COMPILE_FLAGS "${GTK_X11_COMPILE_FLAGS}" + ) + add_executable(extXdrawable_demo extXdrawable_demo.c) + target_link_libraries(extXdrawable_demo ${GTK_X11_LINK_FLAGS} plplot${LIB_TAG}) + else(linkflags3) + message(STATUS "WARNING: gtk+-x11-2.0 not found. extXdrawable_demo not built.") + endif(linkflags3) + endif(PLD_xcairo) else(PKG_CONFIG_EXECUTABLE) message(STATUS "WARNING: pkg-config not found so plplotcanvas_demo and plplotcanvas_animation not built.") endif(PKG_CONFIG_EXECUTABLE) Modified: trunk/examples/plplot_configure.cmake_installed_examples.in =================================================================== --- trunk/examples/plplot_configure.cmake_installed_examples.in 2009-05-30 16:18:58 UTC (rev 10015) +++ trunk/examples/plplot_configure.cmake_installed_examples.in 2009-05-30 16:39:47 UTC (rev 10016) @@ -164,3 +164,5 @@ set(PLD_wxpng @PLD_wxpng@) set(PLD_xfig @PLD_xfig@) +# Set interactive devices +set(PLD_xcairo @PLD_xcairo@) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |