]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - CMakeLists.txt
revert www changes from last commit
[ros_wild_thumper.git] / CMakeLists.txt
index 965b4ee9628ffed1cccf6ab0f2d5c66364067a35..999926aa31b0646b2ae5fe286142d0ebfa80760e 100644 (file)
@@ -1,5 +1,6 @@
 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)
@@ -109,7 +110,6 @@ include_directories(
 
 ## Declare a cpp executable
 add_executable(path_following src/path_following.cpp)
-add_executable(wt_node src/wt_node.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(wt_node
-   ${catkin_LIBRARIES}
-   i2c
-)
+if(${ARCHITECTURE} EQUAL "armv7l")
+       add_executable(wt_node src/wt_node.cpp)
+       target_link_libraries(wt_node
+          ${catkin_LIBRARIES}
+          i2c
+       )
+endif()
 
 #############
 ## Install ##