Revision: 8060
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8060&view=rev
Author:   rtv
Date:     2009-07-21 01:21:39 +0000 (Tue, 21 Jul 2009)

Log Message:
-----------
added example CMake script for building controllers outside the tree

Modified Paths:
--------------
    code/stage/trunk/stage.pc.in

Added Paths:
-----------
    code/stage/trunk/examples/ctrl/CMakeLists.standalone.txt

Added: code/stage/trunk/examples/ctrl/CMakeLists.standalone.txt
===================================================================
--- code/stage/trunk/examples/ctrl/CMakeLists.standalone.txt                    
        (rev 0)
+++ code/stage/trunk/examples/ctrl/CMakeLists.standalone.txt    2009-07-21 
01:21:39 UTC (rev 8060)
@@ -0,0 +1,26 @@
+cmake_minimum_required( VERSION 2.6 )
+
+include(FindPkgConfig)
+pkg_search_module( STAGE REQUIRED stage )
+
+include_directories( ${STAGE_INCLUDE_DIRS} )
+link_directories( ${STAGE_LIBRARY_DIRS} )
+
+SET( PLUGINS
+     puck2
+     GroupEmptyWorld
+)
+
+# create a library module for each plugin and link libstage to each
+
+foreach( PLUGIN ${PLUGINS} )
+  ADD_LIBRARY( ${PLUGIN} MODULE ${PLUGIN}.cc )
+  TARGET_LINK_LIBRARIES( ${PLUGIN} ${STAGE_LIBRARIES} )
+endforeach( PLUGIN )
+
+# delete the "lib" prefix from the plugin libraries
+SET_TARGET_PROPERTIES( ${PLUGINS} PROPERTIES PREFIX "" )
+
+# install in <prefix>/lib
+install( TARGETS ${PLUGINS} DESTINATION lib)
+


Property changes on: code/stage/trunk/examples/ctrl/CMakeLists.standalone.txt
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: code/stage/trunk/stage.pc.in
===================================================================
--- code/stage/trunk/stage.pc.in        2009-07-21 01:21:08 UTC (rev 8059)
+++ code/stage/trunk/stage.pc.in        2009-07-21 01:21:39 UTC (rev 8060)
@@ -3,6 +3,6 @@
 Name: stage
 Description: Stage robot simulation program, C++ library and Player plugin - 
part of the Player/Stage Project
 Version: @VERSION@
-Requires: glib-2.0 >= 2.4
+Requires: gthread-2.0 >= 2.4
 Libs: -L${prefix}/lib -lstage
 Cflags: -I${prefix}/include/sta...@apiversion@


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to