[Jderobot-admin] jderobot-r866 - in trunk/src/components: basic_component basic_component/build-independent introrob introrob/build-independent
ahcorde en jderobot.org
ahcorde en jderobot.org
Jue Feb 28 15:23:01 CET 2013
Author: ahcorde
Date: 2013-02-28 15:22:00 +0100 (Thu, 28 Feb 2013)
New Revision: 866
Added:
trunk/src/components/basic_component/build-independent/
trunk/src/components/basic_component/build-independent/CMakeLists.txt
trunk/src/components/introrob/build-independent/
trunk/src/components/introrob/build-independent/CMakeLists.txt
Log:
[ahcorde] CMake independientes para:
- Basic_component
- Introrob
Added: trunk/src/components/basic_component/build-independent/CMakeLists.txt
===================================================================
--- trunk/src/components/basic_component/build-independent/CMakeLists.txt (rev 0)
+++ trunk/src/components/basic_component/build-independent/CMakeLists.txt 2013-02-28 14:22:00 UTC (rev 866)
@@ -0,0 +1,40 @@
+cmake_minimum_required(VERSION 2.8)
+include(FindPkgConfig)
+
+SET( SOURCE_FILES ../control.cpp ../basic_component.cpp ../API.cpp ../gui.cpp)
+
+SET(INTERFACES_CPP_DIR /usr/local/lib )
+SET( CMAKE_CXX_FLAGS "-lIce -lIceUtil" ) # Opciones para el compilador
+
+include_directories(
+ ${INTERFACES_CPP_DIR}
+ /usr/local/include/jderobot/
+)
+
+
+PKG_CHECK_MODULES(gtkmm REQUIRED gtkmm-2.4)
+include_directories(${gtkmm_INCLUDE_DIRS})
+link_directories(${gtkmm_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(gthread REQUIRED gthread-2.0)
+include_directories(${gthread_INCLUDE_DIRS})
+link_directories(${gthread_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(libglademm REQUIRED libglademm-2.4)
+include_directories(${libglademm_INCLUDE_DIRS})
+link_directories(${libglademm_LIBRARY_DIRS})
+
+find_package(OpenCV REQUIRED)
+
+add_executable (basic_component ${SOURCE_FILES})
+
+TARGET_LINK_LIBRARIES(basic_component
+ ${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so
+ ${INTERFACES_CPP_DIR}/jderobot/libjderobotice.so
+ ${INTERFACES_CPP_DIR}/jderobot/libjderobotutil.so
+ ${INTERFACES_CPP_DIR}/jderobot/libcolorspacesmm.so
+ ${libglademm_LIBRARIES}
+ ${OpenCV_LIBS}
+# ${gtkmm_LIBRARIES}
+# ${gthread_LIBRARIES}
+)
Added: trunk/src/components/introrob/build-independent/CMakeLists.txt
===================================================================
--- trunk/src/components/introrob/build-independent/CMakeLists.txt (rev 0)
+++ trunk/src/components/introrob/build-independent/CMakeLists.txt 2013-02-28 14:22:00 UTC (rev 866)
@@ -0,0 +1,62 @@
+cmake_minimum_required(VERSION 2.8)
+include(FindPkgConfig)
+
+
+SET( SOURCE_FILES ../API.cpp ../control.cpp ../drawarea.cpp ../gui.cpp ../introrob.cpp ../MyAlgorithms.cpp ../pioneer.c ../pioneeropengl.c)
+SET(INTERFACES_CPP_DIR /usr/local/lib )
+
+
+include_directories(
+ ${INTERFACES_CPP_DIR}
+ /usr/local/include/jderobot/
+ /usr/local/include/jderobot/progeo/
+)
+
+set( CMAKE_CXX_FLAGS "-lglut -lgsl -lIce -lIceUtil -lgslcblas" ) # Opciones para el compilador
+
+PKG_CHECK_MODULES(gtkmm REQUIRED gtkmm-2.4)
+include_directories(${gtkmm_INCLUDE_DIRS})
+link_directories(${gtkmm_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(gthread REQUIRED gthread-2.0)
+include_directories(${gthread_INCLUDE_DIRS})
+link_directories(${gthread_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(libglademm REQUIRED libglademm-2.4)
+include_directories(${libglademm_INCLUDE_DIRS})
+link_directories(${libglademm_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(libgnomecanvas REQUIRED libgnomecanvas-2.0)
+include_directories(${libgnomecanvas_INCLUDE_DIRS})
+link_directories(${libgnomecanvas_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(libgnomecanvasmm REQUIRED libgnomecanvasmm-2.6)
+include_directories(${libgnomecanvasmm_INCLUDE_DIRS})
+link_directories(${libgnomecanvasmm_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(gtkglextmm REQUIRED gtkglextmm-1.2)
+include_directories(${gtkglextmm_INCLUDE_DIRS})
+link_directories(${gtkglextmm_LIBRARY_DIRS})
+
+PKG_CHECK_MODULES(gsl REQUIRED gsl)
+include_directories(${gsl_INCLUDE_DIRS})
+link_directories(${gsl_LIBRARIES_DIRS})
+
+find_package(OpenCV REQUIRED)
+
+add_executable (introrob ${SOURCE_FILES})
+
+TARGET_LINK_LIBRARIES(introrob
+
+ ${gtkmm_LIBRARIES}
+ ${gtkglextmm_LIBRARIES}
+ ${libglademm_LIBRARIES}
+ ${libgnomecanvasmm_LIBRARIES}
+ ${OpenCV_LIBS}
+ ${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so
+ ${INTERFACES_CPP_DIR}/jderobot/libjderobotice.so
+ ${INTERFACES_CPP_DIR}/jderobot/libjderobotutil.so
+ ${INTERFACES_CPP_DIR}/jderobot/libcolorspacesmm.so
+ ${INTERFACES_CPP_DIR}/jderobot/libprogeo.so
+ ${INTERFACES_CPP_DIR}/jderobot/libpioneer.so
+)
More information about the Jderobot-admin
mailing list