Commit 84505dc3 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] add option INSTALL_PYTHON_INTERFACE_ONLY

parent 2a30dbb0
Pipeline #7480 passed with stage
in 4 minutes and 20 seconds
...@@ -23,6 +23,7 @@ SET(BOOST_REQUIERED_COMPONENTS serialization) ...@@ -23,6 +23,7 @@ SET(BOOST_REQUIERED_COMPONENTS serialization)
SET(BOOST_OPTIONAL_COMPONENTS "") SET(BOOST_OPTIONAL_COMPONENTS "")
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON) OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
OPTION (INSTALL_PYTHON_INTERFACE_ONLY "Install only the python binding" OFF)
IF(BUILD_PYTHON_INTERFACE) IF(BUILD_PYTHON_INTERFACE)
SET(BOOST_OPTIONAL_COMPONENTS ${BOOST_OPTIONAL_COMPONENTS} python) SET(BOOST_OPTIONAL_COMPONENTS ${BOOST_OPTIONAL_COMPONENTS} python)
FINDPYTHON() FINDPYTHON()
...@@ -41,7 +42,9 @@ IF(BUILD_PYTHON_INTERFACE) ...@@ -41,7 +42,9 @@ IF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY(python) ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE) ENDIF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY (include/${PROJECT_NAME}) IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
ADD_SUBDIRECTORY (include/${CUSTOM_HEADER_DIR})
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
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})
......
install(FILES install(FILES
# bernstein.h #bernstein.h
abstract-curve.hpp abstract-curve.hpp
MathDefs.h MathDefs.h
spline.hpp spline.hpp
...@@ -10,22 +10,22 @@ install(FILES ...@@ -10,22 +10,22 @@ install(FILES
linear-chirp.hpp linear-chirp.hpp
minimum-jerk.hpp minimum-jerk.hpp
text-file.hpp text-file.hpp
# bezier_curve.h #bezier_curve.h
curve-constraint.hpp curve-constraint.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves DESTINATION include/${CUSTOM_HEADER_DIR}
) )
install(FILES install(FILES
serialization/eigen-matrix.hpp serialization/eigen-matrix.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp #serialization/archive.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/serialization #serialization/archive.hpp
DESTINATION include/${CUSTOM_HEADER_DIR}/serialization
) )
install(FILES install(FILES
spatial/force-curve.hpp spatial/force-curve.hpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/parametric-curves/spatial DESTINATION include/${CUSTOM_HEADER_DIR}/spatial
) )
install(FILES install(FILES
utils/file-io.hpp utils/file-io.hpp
#${CMAKE_SOURCE_DIR}/include/parametric-curves/serialization/archive.hpp DESTINATION include/${CUSTOM_HEADER_DIR}/utils
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