diff --git a/CHANGELOG.md b/CHANGELOG.md index a83063cd67f8b..cb5272eb7bb4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ * Build system - * Fix compilation warnings for newer versions of compilers: [#1177](https://github.com/dartsim/dart/pull/1177) + * Fixed compilation warnings for newer versions of compilers: [#1177](https://github.com/dartsim/dart/pull/1177) + * Changed to generate namespace headers without requiring *.hpp.in files: [#1192](https://github.com/dartsim/dart/pull/1192) * Collision Detection @@ -299,7 +300,7 @@ * Common data structures - * Added `Node`, `Aspect`, `State`, and `Properties`: [#713](https://github.com/dartsim/dart/pull/713), [#712](https://github.com/dartsim/dart/issues/712), [#708](https://github.com/dartsim/dart/pull/708), [#707](https://github.com/dartsim/dart/pull/707), [#659](https://github.com/dartsim/dart/pull/659), [#649](https://github.com/dartsim/dart/pull/649), [#645](https://github.com/dartsim/dart/issues/645), [#607](https://github.com/dartsim/dart/pull/607), [#598](https://github.com/dartsim/dart/pull/598), [#591](https://github.com/dartsim/dart/pull/591), [#531](https://github.com/dartsim/dart/pull/531) + * Added `Node`, `Aspect`, `State`, and `Properties`: [#713](https://github.com/dartsim/dart/pull/713), [#712](https://github.com/dartsim/dart/issues/712), [#708](https://github.com/dartsim/dart/pull/708), [#707](https://github.com/dartsim/dart/pull/707), [#659](https://github.com/dartsim/dart/pull/659), [#649](https://github.com/dartsim/dart/pull/649), [#645](https://github.com/dartsim/dart/issues/645), [#607](https://github.com/dartsim/dart/pull/607), [#598](https://github.com/dartsim/dart/pull/598), [#591](https://github.com/dartsim/dart/pull/591), [#531](https://github.com/dartsim/dart/pull/531) * Added mathematical constants and user-defined literals for radian, degree, and pi: [#669](https://github.com/dartsim/dart/pull/669), [#314](https://github.com/dartsim/dart/issues/314) * Added `ShapeFrame` and `ShapeNode`: [#608](https://github.com/dartsim/dart/pull/608) * Added `BoundingBox`: [#547](https://github.com/dartsim/dart/pull/547), [#546](https://github.com/dartsim/dart/issues/546) @@ -402,7 +403,7 @@ ### Version 5.1.6 (2017-08-08) -1. Improved camera movement of OpenGL GUI: smooth zooming and translation +1. Improved camera movement of OpenGL GUI: smooth zooming and translation * [Pull request #843](https://github.com/dartsim/dart/pull/843) 2. Removed debian meta files from the main DART repository diff --git a/cmake/DARTMacros.cmake b/cmake/DARTMacros.cmake index 0594e96e019be..0e47590955158 100644 --- a/cmake/DARTMacros.cmake +++ b/cmake/DARTMacros.cmake @@ -43,6 +43,8 @@ macro(dart_get_subdir_list var curdir) endmacro() #=============================================================================== +# DEPRECATED in 6.7 (see #1081) +# # Generate header file list to a cached list. # Usage: # dart_generate_include_header_list(_var _target_dir _cacheDesc [headers...]) @@ -58,6 +60,18 @@ macro(dart_generate_include_header_list _var _target_dir _cacheDesc) endforeach() endmacro() +#=============================================================================== +# Generate header file. +# Usage: +# dart_generate_include_header_file(file_path target_dir [headers...]) +#=============================================================================== +macro(dart_generate_include_header_file file_path target_dir) + file(WRITE ${file_path} "// Automatically generated file by cmake\n\n") + foreach(header ${ARGN}) + file(APPEND ${file_path} "#include \"${target_dir}${header}\"\n") + endforeach() +endmacro() + #=============================================================================== # Add library and set target properties # Usage: diff --git a/dart/collision/CMakeLists.txt b/dart/collision/CMakeLists.txt index b237907d6653a..6c457ed29ac2e 100644 --- a/dart/collision/CMakeLists.txt +++ b/dart/collision/CMakeLists.txt @@ -16,16 +16,11 @@ set( dart/dart.hpp fcl/fcl.hpp ) -dart_generate_include_header_list( - collision_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/collision.hpp" "dart/collision/" - "collision headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/collision.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/collision.hpp -) # Install install( diff --git a/dart/collision/bullet/CMakeLists.txt b/dart/collision/bullet/CMakeLists.txt index 19305f0bb41f5..09287c8365c04 100644 --- a/dart/collision/bullet/CMakeLists.txt +++ b/dart/collision/bullet/CMakeLists.txt @@ -71,16 +71,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) # Generate header for this namespace dart_get_filename_components(header_names "collision_bullet headers" ${hdrs}) -dart_generate_include_header_list( - collision_bullet_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/bullet.hpp" "dart/collision/bullet/" - "collision_bullet headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/bullet.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/bullet.hpp -) # Install install( diff --git a/dart/collision/collision.hpp.in b/dart/collision/collision.hpp.in deleted file mode 100644 index b703a6f20826f..0000000000000 --- a/dart/collision/collision.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${collision_headers} diff --git a/dart/collision/dart/CMakeLists.txt b/dart/collision/dart/CMakeLists.txt index fdca78fac6226..b58c9b6185b8c 100644 --- a/dart/collision/dart/CMakeLists.txt +++ b/dart/collision/dart/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "collision_dart headers" ${hdrs}) -dart_generate_include_header_list( - collision_dart_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/dart.hpp" "dart/collision/dart/" - "collision_dart headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/dart.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/dart.hpp -) # Install install( diff --git a/dart/collision/fcl/CMakeLists.txt b/dart/collision/fcl/CMakeLists.txt index 553cd6bc358f6..1550e6395aee1 100644 --- a/dart/collision/fcl/CMakeLists.txt +++ b/dart/collision/fcl/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "collision_fcl headers" ${hdrs}) -dart_generate_include_header_list( - collision_fcl_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/fcl.hpp" "dart/collision/fcl/" - "collision_fcl headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/fcl.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/fcl.hpp -) # Install install( diff --git a/dart/collision/ode/CMakeLists.txt b/dart/collision/ode/CMakeLists.txt index 950d4a89a6408..d1f2b5ceb291b 100644 --- a/dart/collision/ode/CMakeLists.txt +++ b/dart/collision/ode/CMakeLists.txt @@ -31,16 +31,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) # Generate header for this namespace dart_get_filename_components(header_names "collision_ode headers" ${hdrs}) -dart_generate_include_header_list( - collision_ode_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/ode.hpp" "dart/collision/ode/" - "collision_ode headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/ode.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/ode.hpp -) # Install install( diff --git a/dart/common/CMakeLists.txt b/dart/common/CMakeLists.txt index dc699ad679f7a..ebc440b583885 100644 --- a/dart/common/CMakeLists.txt +++ b/dart/common/CMakeLists.txt @@ -8,16 +8,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "common headers" ${hdrs}) -dart_generate_include_header_list( - common_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/common.hpp" "dart/common/" - "common headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/common.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/common.hpp -) # Install install( diff --git a/dart/common/common.hpp.in b/dart/common/common.hpp.in deleted file mode 100644 index eeb27444a4322..0000000000000 --- a/dart/common/common.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${common_headers} diff --git a/dart/constraint/CMakeLists.txt b/dart/constraint/CMakeLists.txt index dd3eb678d8ddd..61989e7b90199 100644 --- a/dart/constraint/CMakeLists.txt +++ b/dart/constraint/CMakeLists.txt @@ -8,16 +8,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "constraint headers" ${hdrs}) -dart_generate_include_header_list( - constraint_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/constraint.hpp" "dart/constraint/" - "constraint headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/constraint.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/constraint.hpp -) # Install install( diff --git a/dart/constraint/constraint.hpp.in b/dart/constraint/constraint.hpp.in deleted file mode 100644 index b182ea2c22b26..0000000000000 --- a/dart/constraint/constraint.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${constraint_headers} diff --git a/dart/dynamics/CMakeLists.txt b/dart/dynamics/CMakeLists.txt index aff34504b0070..3c1465e48c02c 100644 --- a/dart/dynamics/CMakeLists.txt +++ b/dart/dynamics/CMakeLists.txt @@ -10,16 +10,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) dart_get_filename_components(header_names "dynamics headers" ${hdrs}) # TODO: remove below line once the files are completely removed. list(REMOVE_ITEM header_names "MultiSphereShape.hpp") -dart_generate_include_header_list( - dynamics_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/dynamics.hpp" "dart/dynamics/" - "dynamics headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/dynamics.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/dynamics.hpp -) # Install install( diff --git a/dart/dynamics/dynamics.hpp.in b/dart/dynamics/dynamics.hpp.in deleted file mode 100644 index 24bfa3cb54cd6..0000000000000 --- a/dart/dynamics/dynamics.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${dynamics_headers} diff --git a/dart/gui/CMakeLists.txt b/dart/gui/CMakeLists.txt index 8988c85aa226a..04ead726db648 100644 --- a/dart/gui/CMakeLists.txt +++ b/dart/gui/CMakeLists.txt @@ -97,16 +97,11 @@ set( ${header_names} glut/glut.hpp ) -dart_generate_include_header_list( - gui_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/gui.hpp" "dart/gui/" - "gui headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/gui.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/gui.hpp -) # Install install( diff --git a/dart/gui/glut/CMakeLists.txt b/dart/gui/glut/CMakeLists.txt index 9ddaccad48d3d..62c4889c69420 100644 --- a/dart/gui/glut/CMakeLists.txt +++ b/dart/gui/glut/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_gui_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "gui_glut_headers headers" ${hdrs}) -dart_generate_include_header_list( - gui_glut_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/glut.hpp" "dart/gui/glut/" - "gui_glut_headers headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/glut.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/glut.hpp -) # Install install( diff --git a/dart/gui/gui.hpp.in b/dart/gui/gui.hpp.in deleted file mode 100644 index 3d277d4bde4b0..0000000000000 --- a/dart/gui/gui.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${gui_headers} diff --git a/dart/gui/osg/CMakeLists.txt b/dart/gui/osg/CMakeLists.txt index 67d4d961fe437..2c9340c08c0d1 100644 --- a/dart/gui/osg/CMakeLists.txt +++ b/dart/gui/osg/CMakeLists.txt @@ -76,16 +76,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} gui) # Generate header for this namespace dart_get_filename_components(header_names "gui osg headers" ${hdrs}) list(APPEND header_names "render/render.hpp") -dart_generate_include_header_list( - gui_osg_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/osg.hpp" "dart/gui/osg/" - "gui osg headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/osg.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/osg.hpp -) # Install install( diff --git a/dart/gui/osg/render/CMakeLists.txt b/dart/gui/osg/render/CMakeLists.txt index 41ff472a1b07e..2a824c047cd86 100644 --- a/dart/gui/osg/render/CMakeLists.txt +++ b/dart/gui/osg/render/CMakeLists.txt @@ -6,16 +6,11 @@ set(dart_gui_osg_hdrs ${dart_gui_osg_hdrs} ${hdrs} PARENT_SCOPE) set(dart_gui_osg_srcs ${dart_gui_osg_srcs} ${srcs} PARENT_SCOPE) dart_get_filename_components(header_names "gui osg render headers" ${hdrs}) -dart_generate_include_header_list( - gui_osg_render_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/render.hpp" "dart/gui/osg/render/" - "gui osg render headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/render.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/render.hpp -) # Install install( diff --git a/dart/integration/CMakeLists.txt b/dart/integration/CMakeLists.txt index 21dcdf3ac5fd7..5ddff7b3b0165 100644 --- a/dart/integration/CMakeLists.txt +++ b/dart/integration/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "integration headers" ${hdrs}) -dart_generate_include_header_list( - integration_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/integration.hpp" "dart/integration/" - "integration headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/integration.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/integration.hpp -) # Install install( diff --git a/dart/integration/integration.hpp.in b/dart/integration/integration.hpp.in deleted file mode 100644 index 662e2e8b11d2c..0000000000000 --- a/dart/integration/integration.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${integration_headers} diff --git a/dart/lcpsolver/CMakeLists.txt b/dart/lcpsolver/CMakeLists.txt index 1ade679327612..c02ba0566bb96 100644 --- a/dart/lcpsolver/CMakeLists.txt +++ b/dart/lcpsolver/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_core_sources(${srcs}) # Generate header for this namespace dart_get_filename_components(header_names "lcpsolver headers" ${hdrs}) -dart_generate_include_header_list( - lcpsolver_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/lcpsolver.hpp" "dart/lcpsolver/" - "lcpsolver headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/lcpsolver.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/lcpsolver.hpp -) # Install install( diff --git a/dart/lcpsolver/lcpsolver.hpp.in b/dart/lcpsolver/lcpsolver.hpp.in deleted file mode 100644 index 4215d81bc004a..0000000000000 --- a/dart/lcpsolver/lcpsolver.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${lcpsolver_headers} diff --git a/dart/math/CMakeLists.txt b/dart/math/CMakeLists.txt index 79cf742a285b9..62bb0a50a425e 100644 --- a/dart/math/CMakeLists.txt +++ b/dart/math/CMakeLists.txt @@ -8,16 +8,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "math headers" ${hdrs}) -dart_generate_include_header_list( - math_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/math.hpp" "dart/math/" - "math headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/math.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/math.hpp -) # Install install( diff --git a/dart/math/math.hpp.in b/dart/math/math.hpp.in deleted file mode 100644 index eb1c5e2d37326..0000000000000 --- a/dart/math/math.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${math_headers} diff --git a/dart/optimizer/CMakeLists.txt b/dart/optimizer/CMakeLists.txt index cc4b820a70124..e3011047b8de0 100644 --- a/dart/optimizer/CMakeLists.txt +++ b/dart/optimizer/CMakeLists.txt @@ -6,16 +6,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "optimizer headers" ${hdrs}) -dart_generate_include_header_list( - optimizer_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/optimizer.hpp" "dart/optimizer/" - "optimizer headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/optimizer.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/optimizer.hpp -) # Install install( diff --git a/dart/optimizer/ipopt/CMakeLists.txt b/dart/optimizer/ipopt/CMakeLists.txt index cae92943451de..393612a0ebee8 100644 --- a/dart/optimizer/ipopt/CMakeLists.txt +++ b/dart/optimizer/ipopt/CMakeLists.txt @@ -22,16 +22,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) # Generate header for this namespace dart_get_filename_components(header_names "optimizer_ipopt headers" ${hdrs}) -dart_generate_include_header_list( - optimizer_ipopt_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/ipopt.hpp" "dart/optimizer/ipopt/" - "optimizer_ipopt headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/ipopt.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/ipopt.hpp -) # Install install( diff --git a/dart/optimizer/nlopt/CMakeLists.txt b/dart/optimizer/nlopt/CMakeLists.txt index 0e3ca97f411d7..022a529c90871 100644 --- a/dart/optimizer/nlopt/CMakeLists.txt +++ b/dart/optimizer/nlopt/CMakeLists.txt @@ -22,16 +22,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) # Generate header for this namespace dart_get_filename_components(header_names "optimizer_nlopt headers" ${hdrs}) -dart_generate_include_header_list( - optimizer_nlopt_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/nlopt.hpp" "dart/optimizer/nlopt/" - "optimizer_nlopt headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/nlopt.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/nlopt.hpp -) # Install install( diff --git a/dart/optimizer/optimizer.hpp.in b/dart/optimizer/optimizer.hpp.in deleted file mode 100644 index d86e979050b43..0000000000000 --- a/dart/optimizer/optimizer.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${optimizer_headers} diff --git a/dart/optimizer/pagmo/CMakeLists.txt b/dart/optimizer/pagmo/CMakeLists.txt index 6f87c2a65da97..dd5441a25c589 100644 --- a/dart/optimizer/pagmo/CMakeLists.txt +++ b/dart/optimizer/pagmo/CMakeLists.txt @@ -35,16 +35,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) # Generate header for this namespace dart_get_filename_components(header_names "optimizer_pagmo headers" ${hdrs}) -dart_generate_include_header_list( - optimizer_pagmo_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/pagmo.hpp" "dart/optimizer/pagmo/" - "optimizer_pagmo headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/pagmo.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/pagmo.hpp -) # Install install( diff --git a/dart/optimizer/snopt/CMakeLists.txt b/dart/optimizer/snopt/CMakeLists.txt index e8a235948c880..5486301e2d8ab 100644 --- a/dart/optimizer/snopt/CMakeLists.txt +++ b/dart/optimizer/snopt/CMakeLists.txt @@ -11,16 +11,11 @@ target_link_libraries(dart-optimizer-snopt dart) # Generate header for this namespace dart_get_filename_components(header_names "optimizer_snopt headers" ${hdrs}) -dart_generate_include_header_list( - optimizer_snopt_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/snopt.hpp" "dart/optimizer/snopt/" - "optimizer_snopt headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/snopt.h.in - ${CMAKE_CURRENT_BINARY_DIR}/snopt.h -) # Install install( diff --git a/dart/planning/CMakeLists.txt b/dart/planning/CMakeLists.txt index e95b0cf03dd87..33c932afb9413 100644 --- a/dart/planning/CMakeLists.txt +++ b/dart/planning/CMakeLists.txt @@ -29,16 +29,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} dart) ## Generate header for this namespace dart_get_filename_components(header_names "planning headers" ${hdrs}) -dart_generate_include_header_list( - planning_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/planning.hpp" "dart/planning/" - "planning headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/planning.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/planning.hpp -) ## Install install( diff --git a/dart/planning/planning.hpp.in b/dart/planning/planning.hpp.in deleted file mode 100644 index 2b742d0c30ec0..0000000000000 --- a/dart/planning/planning.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${planning_headers} diff --git a/dart/simulation/CMakeLists.txt b/dart/simulation/CMakeLists.txt index 0400070d6063d..d11cd858645e5 100644 --- a/dart/simulation/CMakeLists.txt +++ b/dart/simulation/CMakeLists.txt @@ -8,16 +8,11 @@ dart_add_core_sources(${srcs} ${detail_srcs}) # Generate header for this namespace dart_get_filename_components(header_names "simulation headers" ${hdrs}) -dart_generate_include_header_list( - simulation_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/simulation.hpp" "dart/simulation/" - "simulation headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/simulation.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/simulation.hpp -) # Install install( diff --git a/dart/simulation/simulation.hpp.in b/dart/simulation/simulation.hpp.in deleted file mode 100644 index f4bc611156c8b..0000000000000 --- a/dart/simulation/simulation.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${simulation_headers} diff --git a/dart/utils/CMakeLists.txt b/dart/utils/CMakeLists.txt index cb2d1acd1c060..6393c6db6da12 100644 --- a/dart/utils/CMakeLists.txt +++ b/dart/utils/CMakeLists.txt @@ -52,16 +52,11 @@ set( ${header_names} sdf/sdf.hpp ) -dart_generate_include_header_list( - utils_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/utils.hpp" "dart/utils/" - "utils headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/utils.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/utils.hpp -) # Install install( diff --git a/dart/utils/sdf/CMakeLists.txt b/dart/utils/sdf/CMakeLists.txt index f5f5d38a80158..9d0ad3267c579 100644 --- a/dart/utils/sdf/CMakeLists.txt +++ b/dart/utils/sdf/CMakeLists.txt @@ -7,16 +7,11 @@ dart_add_utils_headers(${srcs}) # Generate header for this namespace dart_get_filename_components(header_names "utils_sdf headers" ${hdrs}) -dart_generate_include_header_list( - utils_sdf_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/sdf.hpp" "dart/utils/sdf/" - "utils_sdf headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/sdf.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/sdf.hpp -) # Install install( diff --git a/dart/utils/urdf/CMakeLists.txt b/dart/utils/urdf/CMakeLists.txt index 7a9d9e9e7d786..6046e244671fc 100644 --- a/dart/utils/urdf/CMakeLists.txt +++ b/dart/utils/urdf/CMakeLists.txt @@ -64,16 +64,11 @@ add_component_dependencies(${PROJECT_NAME} ${component_name} utils) dart_get_filename_components(header_names "utils_urdf headers" ${hdrs}) # TODO: remove below line once the files are completely removed. list(REMOVE_ITEM header_names "URDFTypes.hpp") -dart_generate_include_header_list( - utils_urdf_headers +dart_generate_include_header_file( + "${CMAKE_CURRENT_BINARY_DIR}/urdf.hpp" "dart/utils/urdf/" - "utils_urdf headers" ${header_names} ) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/urdf.hpp.in - ${CMAKE_CURRENT_BINARY_DIR}/urdf.hpp -) # Install install( diff --git a/dart/utils/utils.hpp.in b/dart/utils/utils.hpp.in deleted file mode 100644 index 73a04b11fed14..0000000000000 --- a/dart/utils/utils.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -// Automatically generated file by cmake - -${utils_headers}