Commit 92c84e79 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] fix globing and instalation of python/*.py

parent 83827494
Pipeline #1951 failed with stages
in 20 seconds
......@@ -61,7 +61,7 @@ IF(BUILD_PYTHON_INTERFACE)
FINDPYTHON()
SET(BOOST_COMPONENTS ${BOOST_COMPONENTS} python)
ADD_REQUIRED_DEPENDENCY("dynamic-graph-python >= 3.0.0")
SET(${PROJECT_NAME}_PYTHON_FILES python/*.py)
FILE(GLOB_RECURSE ${PROJECT_NAME}_PYTHON_FILES python/*.py)
SET(PYTHON_INSTALL_DIR ${PYTHON_SITELIB}/${${PROJECT_NAME}_PYNAME})
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})
LINK_DIRECTORIES(${PYTHON_LIBRARY_DIRS})
......@@ -126,7 +126,6 @@ INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
IF(BUILD_PYTHON_INTERFACE)
INSTALL(FILES ${${PROJECT_NAME}_PYTHON_FILES}
python/${${PROJECT_NAME}_PYNAME}/main.py
DESTINATION ${PYTHON_SITELIB}/${${PROJECT_NAME}_PYNAME})
ENDIF(BUILD_PYTHON_INTERFACE)
......
Markdown is supported
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