X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=CMakeLists.txt;h=999926aa31b0646b2ae5fe286142d0ebfa80760e;hp=3703bb7978f47271e67aec76a14b4ae4e87e7714;hb=99dd1e1236d58a4ee9c93de7124afd83b2f2c141;hpb=10405f7578977ead223bda080bb10e73839d1219 diff --git a/CMakeLists.txt b/CMakeLists.txt index 3703bb7..999926a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,11 @@ 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 @@ -109,7 +110,6 @@ include_directories( ## Declare a cpp executable add_executable(path_following src/path_following.cpp) -add_executable(imu_brick_v2 src/tinkerforge_imu2.cpp) ## Add cmake target dependencies of the executable/library ## as an example, message headers may need to be generated before nodes @@ -120,10 +120,13 @@ target_link_libraries(path_following ${catkin_LIBRARIES} ${OpenCV_LIBS} ) -target_link_libraries(imu_brick_v2 - ${catkin_LIBRARIES} - tinkerforge -) +if(${ARCHITECTURE} EQUAL "armv7l") + add_executable(wt_node src/wt_node.cpp) + target_link_libraries(wt_node + ${catkin_LIBRARIES} + i2c + ) +endif() ############# ## Install ##