[Jderobot-admin] jderobot-r898 - in trunk/src/components/kinectViewer: . build-independent
frivas en jderobot.org
frivas en jderobot.org
Vie Abr 5 17:19:02 CEST 2013
Author: frivas
Date: 2013-04-05 17:18:01 +0200 (Fri, 05 Apr 2013)
New Revision: 898
Added:
trunk/src/components/kinectViewer/build-independent/
trunk/src/components/kinectViewer/build-independent/CMakeLists.txt
Log:
included build-independent for kinectViewer
Added: trunk/src/components/kinectViewer/build-independent/CMakeLists.txt
===================================================================
--- trunk/src/components/kinectViewer/build-independent/CMakeLists.txt (rev 0)
+++ trunk/src/components/kinectViewer/build-independent/CMakeLists.txt 2013-04-05 15:18:01 UTC (rev 898)
@@ -0,0 +1,76 @@
+ cmake_minimum_required(VERSION 2.8)
+SET( SOURCE_FILES ../kinectViewer.cpp ../drawarea.cpp ../kinectViewergui.cpp ../myprogeo.cpp ../util3d.cpp ../controllers/leds-controller.cpp ../controllers/pointCloud-controller.cpp ../controllers/Pose3DMotors-controller.cpp ../gui-modules/ledsGui.cpp ../gui-modules/Pose3DMotorsGui.cpp)
+SET( LIBS_DIR /usr/local/lib/jderobot/)
+
+
+include_directories(
+ /usr/local/include/jderobot
+)
+
+add_executable (kinectViewer ${SOURCE_FILES})
+
+#automated opencv
+include(FindPkgConfig)
+PKG_CHECK_MODULES(opencv REQUIRED opencv)
+message("----opencv: ${opencv_INCLUDE_DIRS}")
+include_directories(${opencv_INCLUDE_DIRS})
+link_directories(${opencv_LIBRARY_DIRS})
+#automated gtk
+PKG_CHECK_MODULES(gtkmm REQUIRED gtkmm-2.4)
+include_directories(${gtkmm_INCLUDE_DIRS})
+link_directories(${gtkmm_LIBRARY_DIRS})
+#automated gtkmm
+PKG_CHECK_MODULES(libglademm REQUIRED libglademm-2.4)
+include_directories(${libglademm_INCLUDE_DIRS})
+link_directories(${libglademm_LIBRARY_DIRS})
+#automated gtkglextmm
+PKG_CHECK_MODULES(gtkglextmm REQUIRED gtkglextmm-x11-1.2)
+include_directories(${gtkglextmm_INCLUDE_DIRS})
+link_directories(${gtkglextmm_LIBRARY_DIRS})
+#automated gsl
+PKG_CHECK_MODULES(gsl REQUIRED gsl)
+include_directories(${gsl_INCLUDE_DIRS})
+link_directories(${gsl_LIBRARY_DIRS})
+#glut
+find_package(GLUT)
+include_directories(${GLUT_INCLUDE_DIRS})
+link_directories(${GLUT_LIBRARY_DIRS})
+
+#manual ICE
+FIND_PATH( Ice_INCLUDE_DIR NAMES Ice/Ice.h PATHS ENV C++LIB ENV)
+
+IF( Ice_INCLUDE_DIR )
+ FIND_LIBRARY( Ice_LIBRARY1 NAMES Ice PATHS ENV C++LIB ENV PATH PATH_SUFFIXES lib lib64 )
+ FIND_LIBRARY( Ice_LIBRARY2 NAMES IceUtil PATHS ENV C++LIB ENV PATH PATH_SUFFIXES lib lib64)
+ SET (Ice_LIBRARIES ${Ice_LIBRARY1} ${Ice_LIBRARY2})
+ IF( Ice_LIBRARIES )
+ MESSAGE ("-- Ice found at ${Ice_LIBRARIES}")
+ include_directories(${Ice_INCLUDE_DIR})
+ link_directories(${Ice_LIBRARIES})
+ ENDIF( Ice_LIBRARIES )
+ENDIF(Ice_INCLUDE_DIR)
+
+IF(NOT Ice_LIBRARIES)
+ MESSAGE ("*** Ice not found")
+ENDIF()
+
+
+
+set( CMAKE_CXX_FLAGS "-Wno-deprecated" ) # Opciones para el compilador
+
+
+TARGET_LINK_LIBRARIES(kinectViewer
+ ${opencv_LIBRARIES}
+ ${gsl_LIBRARIES}
+ ${Ice_LIBRARIES}
+ ${gtkglextmm_LIBRARIES}
+ ${libglademm_LIBRARIES}
+ ${gtkmm_LIBRARIES}
+ ${gl_LIBRARIES}
+ ${GLUT_LIBRARIES}
+ ${LIBS_DIR}/libcolorspacesmm.so
+ ${LIBS_DIR}/libJderobotInterfaces.so
+ ${LIBS_DIR}/libjderobotice.so
+ ${LIBS_DIR}/libjderobotutil.so
+ ${LIBS_DIR}/libprogeo.so
+)
More information about the Jderobot-admin
mailing list