[Jderobot-admin] jderobot-r993 - trunk
bmenendez en jderobot.org
bmenendez en jderobot.org
Jue Oct 3 11:19:20 CEST 2013
Author: bmenendez
Date: 2013-10-03 11:18:20 +0200 (Thu, 03 Oct 2013)
New Revision: 993
Modified:
trunk/CMakeLists.txt
Log:
#29 Fixed. Just checked if GAZEBO_INCLUDE_DIRS is not empty and set the
GAZEBO_COMPILE variable to TRUE.
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2013-09-26 13:27:19 UTC (rev 992)
+++ trunk/CMakeLists.txt 2013-10-03 09:18:20 UTC (rev 993)
@@ -101,7 +101,16 @@
include_directories(${gstreamerapp_INCLUDE_DIRS})
link_directories(${gstreamerapp_LIBRARY_DIRS})
+PKG_CHECK_MODULES(GAZEBO REQUIRED gazebo)
+include_directories(${GAZEBO_INCLUDE_DIRS})
+link_directories(${GAZEBO_LIBRARY_DIRS})
+if (GAZEBO_INCLUDE_DIRS STREQUAL "")
+ SET(GAZEBO_COMPILE FALSE)
+else()
+ SET(GAZEBO_COMPILE TRUE)
+endif()
+
FOREACH(LibFile ${LIBS_NEEDED})
link_directories(${LIBS_DIR}/${LibFile})
MESSAGE("${LIBS_DIR}/${LibFile}")
More information about the Jderobot-admin
mailing list