Skip to content

Commit

Permalink
Update cmake format
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jan 11, 2025
1 parent 0840fc7 commit 65969a1
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 166 deletions.
76 changes: 70 additions & 6 deletions .cmake-format
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,22 @@ with section("parse"):
'configure_package': {
'pargs': {'nargs': 0},
'kwargs': {
'COMPONENT': '?',
'NAMESPACE': '?',
'TARGETS': '*',
'SUPPORTED_COMPONENTS': '*',
'DEPENDENCIES': '*',
'CFG_EXTRAS': '*',
}
},
'configure_component': {
'pargs': {'nargs': 0},
'kwargs': {
'COMPONENT': '?',
'NAMESPACE': '?',
'TARGETS': '*',
'DEPENDENCIES': '*',
'CFG_EXTRAS': '*',
}
},
'add_gtest_discover_tests': {
Expand Down Expand Up @@ -98,16 +112,66 @@ with section("parse"):
'EXCLUDE': '*',
}
},
'tesseract_cpack': {
'install_targets': {
'pargs': {'nargs': 0},
'kwargs': {
'VERSION': 1,
'MAINTAINER': 1,
'DESCRIPTION': 1,
'LICENSE_FILE': 1,
'README_FILE': 1,
'TARGETS': '*',
'COMPONENT': '?',
}
},
'cpack': {
'pargs': {'nargs': 0},
'kwargs': {
'VERSION': '?',
'MAINTAINER_NAME': '?',
'MAINTAINER_EMAIL': '?',
'VENDOR': '?',
'DESCRIPTION': '?',
'LICENSE_FILE': '?',
'README_FILE': '?',
'PACKAGE_PREFIX': '?',
'LINUX_BUILD_DEPENDS': '*',
'WINDOWS_BUILD_DEPENDS': '*',
'LINUX_DEPENDS': '*',
'WINDOWS_DEPENDS': '*',
}
},
'cpack_component_package': {
'pargs': {'nargs': 0},
'kwargs': {
'VERSION': '?',
'MAINTAINER_NAME': '?',
'MAINTAINER_EMAIL': '?',
'VENDOR': '?',
'DESCRIPTION': '?',
'LICENSE_FILE': '?',
'README_FILE': '?',
'PACKAGE_PREFIX': '?',
'COMPONENT_DEPENDS': '*',
}
},
'cpack_component': {
'pargs': {'nargs': 0},
'kwargs': {
'COMPONENT': '?',
'VERSION': '?',
'DESCRIPTION': '?',
'PACKAGE_PREFIX': '?',
'LINUX_BUILD_DEPENDS': '*',
'WINDOWS_BUILD_DEPENDS': '*',
'LINUX_DEPENDS': '*',
'WINDOWS_DEPENDS': '*',
'COMPONENT_DEPENDS': '*',
}
},
'cpack_debian_source_package': {
'pargs': {'nargs': 0},
'kwargs': {
'CHANGLELOG': '?',
'UPLOAD': '?',
'DPUT_HOST': '?',
'DEBIAN_INCREMENT': '?',
'DISTRIBUTIONS': '*',
}
},
}
Expand Down
52 changes: 22 additions & 30 deletions trajopt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,36 +94,28 @@ endif()

if(TRAJOPT_PACKAGE)
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
LICENSE_FILE
""
README_FILE
${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
LICENSE_FILE ""
README_FILE ${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"libjsoncpp-dev"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-sco"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization"
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"libjsoncpp-dev"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-sco"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization"
WINDOWS_DEPENDS
"Eigen3"
"boost"
"console-bridge"
"jsoncpp"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-sco"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization")
"Eigen3"
"boost"
"console-bridge"
"jsoncpp"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-sco"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization")
endif()
30 changes: 8 additions & 22 deletions trajopt_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,12 @@ endforeach()

if(TRAJOPT_PACKAGE)
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
LICENSE_FILE
""
README_FILE
${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
"libboost-program-options-dev"
"libboost-serialization-dev"
WINDOWS_DEPENDS
"Eigen3"
"boost-program-options"
"boost_serialization")
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
LICENSE_FILE ""
README_FILE ${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS "libeigen3-dev" "libboost-program-options-dev" "libboost-serialization-dev"
WINDOWS_DEPENDS "Eigen3" "boost-program-options" "boost_serialization")
endif()
14 changes: 4 additions & 10 deletions trajopt_ext/osqp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@ if(NOT ${osqp_FOUND})
set(CPACK_BUILD_SOURCE_DIRS "${CMAKE_BINARY_DIR}-src;${CMAKE_BINARY_DIR}-build")
set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR}-build;${PROJECT_NAME};ALL;/")
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX})
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX})
endif()
endif()

Expand Down
20 changes: 6 additions & 14 deletions trajopt_ext/osqp_eigen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,12 @@ if(NOT ${OsqpEigen_FOUND})
set(CPACK_BUILD_SOURCE_DIRS "${CMAKE_BINARY_DIR}-src;${CMAKE_BINARY_DIR}-build")
set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR}-build;${PROJECT_NAME};ALL;/")
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
WINDOWS_DEPENDS
"Eigen3")
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS "libeigen3-dev"
WINDOWS_DEPENDS "Eigen3")
endif()
endif()

Expand Down
20 changes: 6 additions & 14 deletions trajopt_ext/qpoases/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,12 @@ if(NOT qpOASES_FOUND)
set(CPACK_BUILD_SOURCE_DIRS "${CMAKE_BINARY_DIR}-src;${CMAKE_BINARY_DIR}-build")
set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR}-build;${PROJECT_NAME};ALL;/")
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
WINDOWS_DEPENDS
"Eigen3")
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS "libeigen3-dev"
WINDOWS_DEPENDS "Eigen3")
endif()
endif()

Expand Down
41 changes: 17 additions & 24 deletions trajopt_ifopt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,30 +103,23 @@ endif()

if(TRAJOPT_PACKAGE)
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
README_FILE
${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
README_FILE ${CMAKE_CURRENT_LIST_DIR}/../README.md
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment"
WINDOWS_DEPENDS
"Eigen3"
"boost"
"console-bridge"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment")
"Eigen3"
"boost"
"console-bridge"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-environment")
endif()
50 changes: 22 additions & 28 deletions trajopt_optimizers/trajopt_sqp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,34 +114,28 @@ endif()

if(TRAJOPT_PACKAGE)
cpack(
VERSION
${pkg_extracted_version}
MAINTAINER
<https://github.com/tesseract-robotics/trajopt>
VENDOR
"ROS-Industrial"
DESCRIPTION
${pkg_extracted_description}
PACKAGE_PREFIX
${TRAJOPT_PACKAGE_PREFIX}
VERSION ${pkg_extracted_version} MAINTAINER <https://github.com/tesseract-robotics/trajopt>
VENDOR "ROS-Industrial"
DESCRIPTION ${pkg_extracted_description}
PACKAGE_PREFIX ${TRAJOPT_PACKAGE_PREFIX}
LINUX_DEPENDS
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}osqpeigen"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization"
"libeigen3-dev"
"libboost-dev"
"libconsole-bridge-dev"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}osqpeigen"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization"
WINDOWS_DEPENDS
"Eigen3"
"boost"
"console-bridge"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}osqpeigen"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization")
"Eigen3"
"boost"
"console-bridge"
"ifopt"
"${TRAJOPT_PACKAGE_PREFIX}osqpeigen"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-ifopt"
"${TRAJOPT_PACKAGE_PREFIX}trajopt-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-common"
"${TESSERACT_PACKAGE_PREFIX}tesseract-visualization")
endif()
Loading

0 comments on commit 65969a1

Please sign in to comment.