Skip to content

Commit 1bf580d

Browse files
author
Ioan Sucan
committed
minor build updates
1 parent 682ea15 commit 1bf580d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

CMakeLists.txt

+7-11
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
55
set(CMAKE_BUILD_TYPE Release)
66
endif()
77

8-
include_directories(include)
9-
108
find_package(Eigen REQUIRED)
11-
include_directories(${EIGEN_INCLUDE_DIRS})
12-
139
find_package(Boost REQUIRED system filesystem)
14-
include_directories(${Boost_INCLUDE_DIR})
1510

1611
find_package(ASSIMP QUIET)
1712
if (NOT ASSIMP_FOUND)
@@ -25,10 +20,10 @@ if (ASSIMP_FOUND)
2520
else()
2621
message(STATUS "Found assimp v2")
2722
endif()
28-
include_directories(${ASSIMP_INCLUDE_DIRS})
29-
link_directories(${ASSIMP_LIBRARY_DIRS})
3023
else()
3124
message(STATUS "could not find assimp (perhaps available thorugh ROS package?), so assuming assimp v2")
25+
set(ASSIMP_INCLUDE_DIRS )
26+
ste(ASSIMP_LIBRARY_DIRS )
3227
set(ASSIMP_LIBRARIES assimp)
3328
set(ASSIMP_LIBRARY_DIRS)
3429
set(ASSIMP_CXX_FLAGS)
@@ -39,12 +34,8 @@ else()
3934
endif()
4035

4136
find_library(QHULL_LIB qhull)
42-
4337
find_package(octomap REQUIRED)
44-
4538
find_package(catkin COMPONENTS shape_msgs resource_retriever shape_tools random_numbers console_bridge eigen_stl_containers)
46-
include_directories(${catkin_INCLUDE_DIRS})
47-
link_directories(${catkin_LIBRARY_DIRS})
4839

4940
catkin_package(
5041
INCLUDE_DIRS include ${OCTOMAP_INCLUDE_DIRS}
@@ -53,6 +44,11 @@ catkin_package(
5344
DEPENDS Eigen
5445
)
5546

47+
include_directories(SYSTEM ${EIGEN_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} ${ASSIMP_INCLUDE_DIRS})
48+
include_directories(include)
49+
include_directories(${catkin_INCLUDE_DIRS})
50+
link_directories(${catkin_LIBRARY_DIRS} ${ASSIMP_LIBRARY_DIRS})
51+
5652
add_library(${PROJECT_NAME}
5753
src/shapes.cpp
5854
src/shape_operations.cpp

0 commit comments

Comments
 (0)