Commit 0c6742c4 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] clean

parent 839df5df
Pipeline #3319 failed with stage
in 8 minutes and 43 seconds
...@@ -6,16 +6,13 @@ INCLUDE(cmake/eigen.cmake) ...@@ -6,16 +6,13 @@ INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/python.cmake) INCLUDE(cmake/python.cmake)
INCLUDE(cmake/test.cmake) INCLUDE(cmake/test.cmake)
SET(PROJECT_NAMESPACE stack-of-tasks)
SET(PROJECT_NAME parametric-curves) SET(PROJECT_NAME parametric-curves)
SET(PROJECT_DESCRIPTION "Template based classes for creating and manipulating parametric curves. Comes with extra options specific to end-effector trajectories in robotics." ) SET(PROJECT_DESCRIPTION "Template based classes for creating and manipulating parametric curves. Comes with extra options specific to end-effector trajectories in robotics." )
SET(PROJECT_URL "http://github.com/stack-of-tasks/parameteric-curves") SET(PROJECT_URL "http://github.com/${PROJECT_NAMESPACE}/${PROJECT_NAME}")
SET(DOXYGEN_USE_MATHJAX yes) SET(DOXYGEN_USE_MATHJAX yes)
SET(CUSTOM_HEADER_DIR ${PROJECT_NAME})
#set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/build/")
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/")
#set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib/")
# Disable -Werror on Unix for now. # Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True) SET(CXX_DISABLE_WERROR True)
...@@ -23,13 +20,6 @@ SET(CMAKE_VERBOSE_MAKEFILE True) ...@@ -23,13 +20,6 @@ SET(CMAKE_VERBOSE_MAKEFILE True)
SETUP_PROJECT() SETUP_PROJECT()
IF(WIN32)
SET(LINK copy_if_different)
ELSE(WIN32)
SET(LINK create_symlink)
ENDIF(WIN32)
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5") ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5")
SET(BOOST_REQUIERED_COMPONENTS serialization) SET(BOOST_REQUIERED_COMPONENTS serialization)
SET(BOOST_OPTIONAL_COMPONENTS "") SET(BOOST_OPTIONAL_COMPONENTS "")
...@@ -47,44 +37,13 @@ SEARCH_FOR_BOOST() ...@@ -47,44 +37,13 @@ SEARCH_FOR_BOOST()
SEARCH_FOR_EIGEN() SEARCH_FOR_EIGEN()
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
install(FILES
# ${CMAKE_SOURCE_DIR}/include/parametric-curves/bernstein.h
${CMAKE_SOURCE_DIR}/include/parametric-curves/abstract-curve.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/MathDefs.h
${CMAKE_SOURCE_DIR}/include/parametric-curves/spline.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/polynomial.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/infinite-sinusoid.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/infinite-const-acc.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/constant.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/linear-chirp.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/minimum-jerk.hpp
${CMAKE_SOURCE_DIR}/include/parametric-curves/text-file.hpp
# ${CMAKE_SOURCE_DIR}/include/parametric-curves/bezier_curve.h
${CMAKE_SOURCE_DIR}/include/parametric-curves/curve-constraint.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves
)
install(FILES
${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/eigen-matrix.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/serialization
)
install(FILES
${CMAKE_SOURCE_DIR}/include/parametric-curves/spatial/force-curve.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/spatial
)
install(FILES
${CMAKE_SOURCE_DIR}/include/parametric-curves/utils/file-io.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/utils
)
IF(BUILD_PYTHON_INTERFACE) IF(BUILD_PYTHON_INTERFACE)
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME}) STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
SET(PYWRAP ${PY_NAME}_pywrap) SET(PYWRAP ${PY_NAME}_pywrap)
ADD_SUBDIRECTORY(python) ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE) ENDIF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY (include/${PROJECT_NAME})
ADD_SUBDIRECTORY (src/tests/spline_test) ADD_SUBDIRECTORY (src/tests/spline_test)
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND}) ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
......
Subproject commit 8e7bedfcbd8524c0401a58fd74edc07c3d4308d0 Subproject commit 391e99bea1a82a497a205e3ac8f83c1f6b8e1b78
install(FILES
# bernstein.h
abstract-curve.hpp
MathDefs.h
spline.hpp
polynomial.hpp
infinite-sinusoid.hpp
infinite-const-acc.hpp
constant.hpp
linear-chirp.hpp
minimum-jerk.hpp
text-file.hpp
# bezier_curve.h
curve-constraint.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves
)
install(FILES
serialization/eigen-matrix.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/serialization
)
install(FILES
spatial/force-curve.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/spatial
)
install(FILES
utils/file-io.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/utils
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment