Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
catkin_package() must be called before add_executable().
  • Loading branch information
patrickcjh committed Apr 26, 2015
1 parent 6f63fb9 commit e49d54f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions turtlebot_navigation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ project(turtlebot_navigation)
# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS tf roscpp sensor_msgs)

include_directories(${catkin_INCLUDE_DIRS})

# Add_executables
add_executable(laser_footprint_filter src/laser_footprint_filter.cpp)
target_link_libraries(laser_footprint_filter ${catkin_LIBRARIES})

# What other packages will need to use this package
catkin_package(
CATKIN_DEPENDS tf roscpp sensor_msgs
Expand All @@ -18,6 +12,16 @@ catkin_package(
catkin_add_env_hooks(25.turtlebot-navigation SHELLS sh DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/env-hooks)


###########
## Build ##
###########
include_directories(${catkin_INCLUDE_DIRS})

# Add_executables
add_executable(laser_footprint_filter src/laser_footprint_filter.cpp)
target_link_libraries(laser_footprint_filter ${catkin_LIBRARIES})


#############
## Install ##
#############
Expand Down

0 comments on commit e49d54f

Please sign in to comment.