Skip to content

Commit

Permalink
[CMake] clean
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Mar 5, 2019
1 parent 839df5d commit 0c6742c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 46 deletions.
49 changes: 4 additions & 45 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,20 @@ INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/python.cmake)
INCLUDE(cmake/test.cmake)

SET(PROJECT_NAMESPACE stack-of-tasks)
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_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(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/build/")
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/")
#set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib/")
SET(CUSTOM_HEADER_DIR ${PROJECT_NAME})

# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)

SETUP_PROJECT()

IF(WIN32)
SET(LINK copy_if_different)
ELSE(WIN32)
SET(LINK create_symlink)
ENDIF(WIN32)


ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5")
SET(BOOST_REQUIERED_COMPONENTS serialization)
SET(BOOST_OPTIONAL_COMPONENTS "")
Expand All @@ -47,44 +37,13 @@ SEARCH_FOR_BOOST()
SEARCH_FOR_EIGEN()
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)
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
SET(PYWRAP ${PY_NAME}_pywrap)
ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE)

ADD_SUBDIRECTORY (include/${PROJECT_NAME})
ADD_SUBDIRECTORY (src/tests/spline_test)

ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
Expand Down
31 changes: 31 additions & 0 deletions include/parametric-curves/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
)

0 comments on commit 0c6742c

Please sign in to comment.