Skip to content

Commit

Permalink
Started fixing the CMakeLists
Browse files Browse the repository at this point in the history
This resolves the compilation errors on Kinetic (fixes #18).
  • Loading branch information
mintar committed Jan 17, 2020
1 parent 5c07657 commit 862addf
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions interface_nbvp_rotors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
project(interface_nbvp_rotors)

find_package(catkin REQUIRED COMPONENTS
nbvplanner
trajectory_msgs
mav_msgs
tf
Expand All @@ -10,13 +11,11 @@ find_package(catkin REQUIRED COMPONENTS
include_directories(${Eigen_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})

catkin_package(
INCLUDE_DIRS ${Eigen_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}
LIBRARIES ${catkin_LIBRARIES}
CATKIN_DEPENDS trajectory_msgs mav_msgs tf
)

add_executable(exploration src/exploration.cpp)
target_link_libraries(exploration
${catkin_LIBRARIES}
)
add_dependencies(exploration ${catkin_EXPORTED_TARGETS})
add_dependencies(exploration ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
2 changes: 1 addition & 1 deletion kdtree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cs_add_library(${PROJECT_NAME}
include_directories(include ${catkin_INCLUDE_DIRS})

catkin_package(
INCLUDE_DIRS include ${catkin_INCLUDE_DIRS}
INCLUDE_DIRS include
)

##########
Expand Down
2 changes: 1 addition & 1 deletion multiagent_collision_check/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ generate_messages(

catkin_package(
INCLUDE_DIRS include
LIBRARIES multiagent_collision_check_lib ${catkin_LIBRARIES} ${OCTOMAP_LIBRARIES}
LIBRARIES multiagent_collision_check_lib
)
add_library(multiagent_collision_check_lib src/multiagent_collision_checker.cpp)

Expand Down
8 changes: 4 additions & 4 deletions nbvplanner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ generate_messages(
DEPENDENCIES
geometry_msgs
visualization_msgs
std_msgs
)

catkin_package(
INCLUDE_DIRS include ${Eigen_INCLUDE_DIRS} ${OCTOMAP_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}
LIBRARIES nbvplanner ${catkin_LIBRARIES} ${OCTOMAP_LIBRARIES}
INCLUDE_DIRS include
LIBRARIES nbvPlannerLib
CATKIN_DEPENDS message_runtime roscpp geometry_msgs visualization_msgs octomap_world tf kdtree
)

Expand All @@ -43,8 +42,9 @@ include_directories(
)

add_library(nbvPlannerLib src/mesh_structure.cpp src/nbvp.cpp src/rrt.cpp src/tree.cpp)
add_dependencies(nbvPlannerLib ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_executable(nbvPlanner src/nbv_planner_node.cpp src/mesh_structure.cpp src/nbvp.cpp src/rrt.cpp src/tree.cpp)
add_dependencies(nbvPlannerLib ${${PROJECT_NAME}_EXPORTED_TARGETS})
add_dependencies(nbvPlanner ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

target_link_libraries(nbvPlannerLib
${catkin_LIBRARIES}
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 862addf

Please sign in to comment.