Commit 78648c0 Ioan Sucan
committed
1 parent 6f61f80 commit 78648c0 Copy full SHA for 78648c0
File tree 4 files changed +6
-15
lines changed
4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 35
35
set (IS_ASSIMP3 0) # most likely not
36
36
endif ()
37
37
38
- find_package (Qhull REQUIRED)
39
38
find_package (octomap REQUIRED)
40
39
find_package (catkin COMPONENTS shape_msgs resource_retriever shape_tools random_numbers console_bridge eigen_stl_containers)
41
40
@@ -46,12 +45,11 @@ catkin_package(
46
45
DEPENDS Eigen console_bridge
47
46
)
48
47
49
- ### ---[ Create the config.h file
50
- set (config_h_in " ${CMAKE_CURRENT_SOURCE_DIR} /config.h.in" )
51
- set (config_h " ${CMAKE_CURRENT_BINARY_DIR} /include/config.h" )
52
- configure_file ( ${config_h_in} ${config_h} )
48
+ find_package (Qhull REQUIRED)
49
+ if (HAVE_QHULL_2011 )
50
+ add_definitions (-DGEOMETRIC_SHAPES_HAVE_QHULL_2011 )
51
+ endif ( )
53
52
54
- include_directories (${CMAKE_CURRENT_BINARY_DIR} /include )
55
53
include_directories (SYSTEM ${EIGEN_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} ${ASSIMP_INCLUDE_DIRS} )
56
54
include_directories (include )
57
55
include_directories (${catkin_INCLUDE_DIRS} )
@@ -63,7 +61,7 @@ add_library(${PROJECT_NAME}
63
61
src/mesh_operations.cpp
64
62
src/bodies.cpp
65
63
src/body_operations.cpp)
66
- target_link_libraries (${PROJECT_NAME} ${ASSIMP_LIBRARIES} ${QHULL_LIB } ${catkin_LIBRARIES} ${Boost_LIBRARIES} )
64
+ target_link_libraries (${PROJECT_NAME} ${ASSIMP_LIBRARIES} ${QHULL_LIBRARIES } ${catkin_LIBRARIES} ${Boost_LIBRARIES} )
67
65
68
66
69
67
# Unit tests
Original file line number Diff line number Diff line change 5
5
# QHULL_FOUND - True if QHULL was found.
6
6
# QHULL_INCLUDE_DIRS - Directories containing the QHULL include files.
7
7
# QHULL_LIBRARIES - Libraries needed to use QHULL.
8
- # QHULL_DEFINITIONS - Compiler flags for QHULL.
9
8
# If QHULL_USE_STATIC is specified then look for static libraries ONLY else
10
9
# look for shared ones
11
10
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 39
39
40
40
#include < console_bridge/console.h>
41
41
42
- #include " config.h"
43
-
44
42
extern " C"
45
43
{
46
- #ifdef HAVE_QHULL_2011
44
+ #ifdef GEOMETRIC_SHAPES_HAVE_QHULL_2011
47
45
#include < libqhull/libqhull.h>
48
46
#include < libqhull/mem.h>
49
47
#include < libqhull/qset.h>
You can’t perform that action at this time.
0 commit comments