Commit f98dd43 1 parent 956d3a9 commit f98dd43 Copy full SHA for f98dd43
File tree 13 files changed +22
-20
lines changed
13 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -233,18 +233,12 @@ else()
233
233
message (STATUS "FCL does not use OctoMap (as requested)" )
234
234
endif ()
235
235
236
- # Need to include directory to find export file
237
- include_directories (${PROJECT_BINARY_DIR} )
238
-
239
- install (FILES ${PROJECT_BINARY_DIR} /${PROJECT_NAME} _export.h
240
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
241
-
242
236
# FCL's own include dir should be at the front of the include path
243
237
include_directories (BEFORE "include" )
244
238
include_directories (BEFORE "${CMAKE_CURRENT_BINARY_DIR} /include" )
245
239
246
- add_subdirectory (include /fcl)
247
240
add_subdirectory (src)
241
+ add_subdirectory (include /fcl)
248
242
249
243
set (pkg_conf_file_in "${CMAKE_CURRENT_SOURCE_DIR} /fcl.pc.in" )
250
244
set (pkg_conf_file_out "${CMAKE_CURRENT_BINARY_DIR} /fcl.pc" )
@@ -275,8 +269,6 @@ if(FCL_BUILD_TESTS AND NOT FCL_HIDE_ALL_SYMBOLS)
275
269
add_subdirectory (test )
276
270
endif ()
277
271
278
- generate_export_header(${PROJECT_NAME} )
279
-
280
272
#===============================================================================
281
273
# API documentation using Doxygen
282
274
# References:
Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
2
2
file (GLOB_RECURSE CONFIGURED_HEADERS ${CMAKE_CURRENT_BINARY_DIR} /*.h)
3
3
set (FCL_HEADERS ${HEADERS} ${CONFIGURED_HEADERS} PARENT_SCOPE)
4
4
5
+ # Generate export header. There is no way of generating a file name
6
+ # called just export.h. Workaround using configure and remove
7
+ generate_export_header(${PROJECT_NAME} )
8
+ configure_file (${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} _export.h
9
+ ${CMAKE_CURRENT_BINARY_DIR} /export.h
10
+ COPYONLY )
11
+ file (REMOVE ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} _export.h)
12
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /export.h
13
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
14
+
5
15
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /config.h.in ${CMAKE_CURRENT_BINARY_DIR} /config.h)
6
16
install (FILES ${CMAKE_CURRENT_BINARY_DIR} /config.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /fcl)
7
17
Original file line number Diff line number Diff line change 39
39
#define FCL_BROADPHASE_DETAIL_INTERVALTREENODE_H
40
40
41
41
#include " fcl/broadphase/detail/simple_interval.h"
42
- #include " fcl_export .h"
42
+ #include " fcl/export .h"
43
43
44
44
namespace fcl
45
45
{
Original file line number Diff line number Diff line change 38
38
#ifndef FCL_BROADPHASE_DETAIL_SIMPLEINTERVAL_H
39
39
#define FCL_BROADPHASE_DETAIL_SIMPLEINTERVAL_H
40
40
41
- #include " fcl_export .h"
41
+ #include " fcl/export .h"
42
42
43
43
namespace fcl
44
44
{
Original file line number Diff line number Diff line change 49
49
#include < thread>
50
50
#include < vector>
51
51
#include " fcl/common/time.h"
52
- #include " fcl_export .h"
52
+ #include " fcl/export .h"
53
53
54
54
namespace fcl {
55
55
namespace detail {
Original file line number Diff line number Diff line change 41
41
#include < stdexcept>
42
42
#include < string>
43
43
44
- #include " fcl_export .h"
44
+ #include " fcl/export .h"
45
45
46
46
namespace fcl
47
47
{
Original file line number Diff line number Diff line change 39
39
#define FCL_COMMON_TIME_H
40
40
41
41
#include < chrono>
42
- #include " fcl_export .h"
42
+ #include " fcl/export .h"
43
43
44
44
namespace fcl
45
45
{
Original file line number Diff line number Diff line change 45
45
#include < memory>
46
46
#include < Eigen/Dense>
47
47
#include < Eigen/StdVector>
48
- #include " fcl_export .h"
48
+ #include " fcl/export .h"
49
49
50
50
namespace fcl
51
51
{
Original file line number Diff line number Diff line change 39
39
#define FCL_BVH_FRONT_H
40
40
41
41
#include < list>
42
- #include " fcl_export .h"
42
+ #include " fcl/export .h"
43
43
44
44
namespace fcl
45
45
{
Original file line number Diff line number Diff line change 38
38
#ifndef FCL_NARROWPHASE_DETAIL_POLYSOLVER_H
39
39
#define FCL_NARROWPHASE_DETAIL_POLYSOLVER_H
40
40
41
- #include " fcl_export .h"
41
+ #include " fcl/export .h"
42
42
43
43
namespace fcl
44
44
{
Original file line number Diff line number Diff line change 39
39
#define FCL_MATH_DETAIL_SEED_H
40
40
41
41
#include < cstdint>
42
- #include " fcl_export .h"
42
+ #include " fcl/export .h"
43
43
44
44
namespace fcl
45
45
{
Original file line number Diff line number Diff line change 39
39
#define FCL_MATH_TRIANGLE_H
40
40
41
41
#include < cstddef>
42
- #include " fcl_export .h"
42
+ #include " fcl/export .h"
43
43
44
44
namespace fcl
45
45
{
Original file line number Diff line number Diff line change 40
40
41
41
#include < cstddef>
42
42
#include " fcl/narrowphase/gjk_solver_type.h"
43
- #include " fcl_export .h"
43
+ #include " fcl/export .h"
44
44
45
45
namespace fcl
46
46
{
You can’t perform that action at this time.
0 commit comments