[Jderobot-admin] jderobot-r1061 - in trunk: . Deps Deps/libusb

lr.morales en jderobot.org lr.morales en jderobot.org
Vie Oct 18 01:35:49 CEST 2013


Author: lr.morales
Date: 2013-10-18 01:35:48 +0200 (Fri, 18 Oct 2013)
New Revision: 1061

Added:
   trunk/Deps/libusb/
   trunk/Deps/libusb/CMakeLists.txt
Modified:
   trunk/CMakeLists.txt
Log:
Adds libusb dependence
 - Mandatory for linker in some systems, implicit in others.



Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2013-10-17 01:06:38 UTC (rev 1060)
+++ trunk/CMakeLists.txt	2013-10-17 23:35:48 UTC (rev 1061)
@@ -91,6 +91,7 @@
 include(${DEPS_DIR}/qt/CMakeLists.txt)
 include(${DEPS_DIR}/gtk3/CMakeLists.txt)
 include(${DEPS_DIR}/kobuki/CMakeLists.txt)
+include(${DEPS_DIR}/libusb/CMakeLists.txt)
 #include(${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/CMakeLists.txt)
 
 

Added: trunk/Deps/libusb/CMakeLists.txt
===================================================================
--- trunk/Deps/libusb/CMakeLists.txt	                        (rev 0)
+++ trunk/Deps/libusb/CMakeLists.txt	2013-10-17 23:35:48 UTC (rev 1061)
@@ -0,0 +1,9 @@
+pkg_check_modules(LIBUSB QUIET libusb-1.0)
+include_directories(${LIBUSB_INCLUDE_DIRS})
+link_directories(${LIBUSB_LIBRARY_DIRS})
+
+if (LIBUSB_INCLUDE_DIRS)
+	MESSAGE("*** libusb FOUND")
+else()
+	MESSAGE("*** libusb NOT FOUND")
+endif()



More information about the Jderobot-admin mailing list