cmake_minimum_required(VERSION 2.8.3)
project(wild_thumper)
+EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
-find_package(catkin REQUIRED sensor_msgs cv_bridge roscpp rospy std_msgs image_transport dynamic_reconfigure message_generation rosruby)
+find_package(catkin REQUIRED sensor_msgs cv_bridge roscpp rospy std_msgs image_transport dynamic_reconfigure message_generation rosruby tf)
find_package(OpenCV)
## System dependencies are found with CMake's conventions
## Your package locations should be listed before other locations
include_directories(
${catkin_INCLUDE_DIRS}
- /opt/ros/tinkerforge/c_bindings/source
)
## Declare a cpp library
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
+if(${ARCHITECTURE} EQUAL "armv7l")
+ add_executable(wt_node src/wt_node.cpp)
+ target_link_libraries(wt_node
+ ${catkin_LIBRARIES}
+ i2c
+ )
+endif()
#############
## Install ##