Commit 4478c8ec authored by mnaveau's avatar mnaveau
Browse files

Add a cmake variable to choose if the pyhton wrapper will be compile or not

parent da63cda1
......@@ -51,6 +51,7 @@ OPTION (BUILD_UNIT_TESTS "Build the unitary tests" ON)
OPTION (BUILD_UTILS "Build the utils" OFF)
OPTION (INITIALIZE_WITH_NAN "Initialize Eigen entries with NaN" OFF)
OPTION (BUILD_TESTS_WITH_HPP "Build geom tests and benchmarks with hpp to do comparisons" OFF)
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
IF (INITIALIZE_WITH_NAN)
MESSAGE (STATUS "Initialize with NaN all the Eigen entries")
......@@ -159,6 +160,7 @@ SET(${PROJECT_NAME}_ALGORITHM_HEADERS
algorithm/compute-all-terms.hpp
)
IF(${BUILD_PYTHON_INTERFACE} STREQUAL "ON")
SET(${PROJECT_NAME}_PYTHON_HEADERS
python/eigen_container.hpp
python/handler.hpp
......@@ -177,6 +179,7 @@ SET(${PROJECT_NAME}_PYTHON_HEADERS
python/parsers.hpp
python/explog.hpp
)
ENDIF(${BUILD_PYTHON_INTERFACE} STREQUAL "ON")
IF(HPP_FCL_FOUND)
LIST(APPEND ${PROJECT_NAME}_PYTHON_HEADERS
......
......@@ -92,7 +92,7 @@ ENDIF ( )
# ----------------------------------------------------
# --- PYTHON -----------------------------------------
# ----------------------------------------------------
IF(${BUILD_PYTHON_INTERFACE} STREQUAL "ON")
IF(EIGENPY_FOUND)
FINDPYTHON(2.7 EXACT REQUIRED)
MAKE_DIRECTORY("${${PROJECT_NAME}_BINARY_DIR}/lib/python/${PROJECT_NAME}")
......@@ -166,4 +166,4 @@ IF(EIGENPY_FOUND)
ENDFOREACH(python)
ENDIF(EIGENPY_FOUND)
ENDIF(${BUILD_PYTHON_INTERFACE} STREQUAL "ON")
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