X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=CMakeLists.txt;h=999926aa31b0646b2ae5fe286142d0ebfa80760e;hp=fd596fa7f4a0bb939a568ccd89d9576e5de168c2;hb=99dd1e1236d58a4ee9c93de7124afd83b2f2c141;hpb=67dc60206f09f8e712d96b2b0c847e563f4c46ac diff --git a/CMakeLists.txt b/CMakeLists.txt index fd596fa..999926a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,12 @@ 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) +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 # find_package(Boost REQUIRED COMPONENTS system) @@ -66,9 +68,12 @@ generate_messages( std_msgs # Or other packages containing msgs ) +rosruby_setup() +rosruby_generate_messages(fiducial_msgs) + generate_dynamic_reconfigure_options( - config/path_following.cfg - config/wt_node.cfg + config/PathFollowing.cfg + config/WildThumper.cfg ) ################################### @@ -113,7 +118,15 @@ add_dependencies(path_following ${PROJECT_NAME}_gencfg) ## Specify libraries to link a library or executable target against target_link_libraries(path_following ${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 ##