Revision: 7672
http://playerstage.svn.sourceforge.net/playerstage/?rev=7672&view=rev
Author: natepak
Date: 2009-05-15 16:03:15 +0000 (Fri, 15 May 2009)
Log Message:
-----------
Removed SConstruct and added CMakeLists.txt
Added Paths:
-----------
code/gazebo/trunk/examples/libgazebo/factory/CMakeLists.txt
Removed Paths:
-------------
code/gazebo/trunk/examples/libgazebo/factory/SConstruct
Added: code/gazebo/trunk/examples/libgazebo/factory/CMakeLists.txt
===================================================================
--- code/gazebo/trunk/examples/libgazebo/factory/CMakeLists.txt
(rev 0)
+++ code/gazebo/trunk/examples/libgazebo/factory/CMakeLists.txt 2009-05-15
16:03:15 UTC (rev 7672)
@@ -0,0 +1,31 @@
+project(factory)
+
+cmake_minimum_required( VERSION 2.4 FATAL_ERROR )
+
+if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+ cmake_policy(SET CMP0004 NEW)
+endif(COMMAND cmake_policy)
+
+include (FindPkgConfig)
+
+if (PKG_CONFIG_FOUND)
+ pkg_check_modules(PKG_CFGS REQUIRED libgazebo)
+ set (INCLUDE_DIRS ${PKG_CFGS_INCLUDE_DIRS})
+ set (LINK_DIRS ${PKG_CFGS_LIBRARY_DIRS})
+ set (LINK_LIBS ${PKG_CFGS_LINK_LIBS} ${PKG_CFGS_LIBRARIES})
+endif (PKG_CONFIG_FOUND)
+
+include_directories( ${INCLUDE_DIRS} )
+link_directories( ${LINK_DIRS} )
+
+
+include_directories(.)
+
+set (sources factory.cc )
+
+set_source_files_properties(${sources} PROPERTIES COMPILE_FLAGS "-ggdb -g2
-Wall")
+
+add_executable(factory ${sources})
+
+target_link_libraries(factory ${LINK_LIBS} )
Deleted: code/gazebo/trunk/examples/libgazebo/factory/SConstruct
===================================================================
--- code/gazebo/trunk/examples/libgazebo/factory/SConstruct 2009-05-15
16:01:59 UTC (rev 7671)
+++ code/gazebo/trunk/examples/libgazebo/factory/SConstruct 2009-05-15
16:03:15 UTC (rev 7672)
@@ -1,20 +0,0 @@
-
-# 3rd party packages
-parseConfigs=['pkg-config --cflags --libs libgazebo'];
-
-env = Environment (
- CC = 'g++',
-
- CCFLAGS = Split ('-pthread -pipe -W -Wall -O2'),
-
- #LIBPATH=Split('#libgazebo'),
-
- #LIBS=Split('gazebo boost_python')
-)
-
-
-# Parse all the pacakge configurations
-for cfg in parseConfigs:
- env.ParseConfig(cfg)
-
-env.Program('factory','factory2.cc')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit