Skip to content

Commit

Permalink
Change export header from fcl_export.h to fcl/export.h
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Nov 14, 2017
1 parent 956d3a9 commit f98dd43
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 20 deletions.
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,12 @@ else()
message(STATUS "FCL does not use OctoMap (as requested)")
endif()

# Need to include directory to find export file
include_directories(${PROJECT_BINARY_DIR})

install(FILES ${PROJECT_BINARY_DIR}/${PROJECT_NAME}_export.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

# FCL's own include dir should be at the front of the include path
include_directories(BEFORE "include")
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}/include")

add_subdirectory(include/fcl)
add_subdirectory(src)
add_subdirectory(include/fcl)

set(pkg_conf_file_in "${CMAKE_CURRENT_SOURCE_DIR}/fcl.pc.in")
set(pkg_conf_file_out "${CMAKE_CURRENT_BINARY_DIR}/fcl.pc")
Expand Down Expand Up @@ -275,8 +269,6 @@ if(FCL_BUILD_TESTS AND NOT FCL_HIDE_ALL_SYMBOLS)
add_subdirectory(test)
endif()

generate_export_header(${PROJECT_NAME})

#===============================================================================
# API documentation using Doxygen
# References:
Expand Down
10 changes: 10 additions & 0 deletions include/fcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
file(GLOB_RECURSE CONFIGURED_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/*.h)
set(FCL_HEADERS ${HEADERS} ${CONFIGURED_HEADERS} PARENT_SCOPE)

# Generate export header. There is no way of generating a file name
# called just export.h. Workaround using configure and remove
generate_export_header(${PROJECT_NAME})
configure_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_export.h
${CMAKE_CURRENT_BINARY_DIR}/export.h
COPYONLY)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_export.h)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/export.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/fcl)

Expand Down
2 changes: 1 addition & 1 deletion include/fcl/broadphase/detail/interval_tree_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define FCL_BROADPHASE_DETAIL_INTERVALTREENODE_H

#include "fcl/broadphase/detail/simple_interval.h"
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/broadphase/detail/simple_interval.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#ifndef FCL_BROADPHASE_DETAIL_SIMPLEINTERVAL_H
#define FCL_BROADPHASE_DETAIL_SIMPLEINTERVAL_H

#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/common/detail/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <thread>
#include <vector>
#include "fcl/common/time.h"
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl {
namespace detail {
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/common/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <stdexcept>
#include <string>

#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/common/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define FCL_COMMON_TIME_H

#include <chrono>
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/common/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <memory>
#include <Eigen/Dense>
#include <Eigen/StdVector>
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/geometry/bvh/detail/BVH_front.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define FCL_BVH_FRONT_H

#include <list>
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/math/detail/polysolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#ifndef FCL_NARROWPHASE_DETAIL_POLYSOLVER_H
#define FCL_NARROWPHASE_DETAIL_POLYSOLVER_H

#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/math/detail/seed.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define FCL_MATH_DETAIL_SEED_H

#include <cstdint>
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/math/triangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define FCL_MATH_TRIANGLE_H

#include <cstddef>
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/narrowphase/continuous_collision_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include <cstddef>
#include "fcl/narrowphase/gjk_solver_type.h"
#include "fcl_export.h"
#include "fcl/export.h"

namespace fcl
{
Expand Down

0 comments on commit f98dd43

Please sign in to comment.