Commit 5f2f3176 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Move python files to src and clean CMakeLists.txt

parent 4ee2f13a
......@@ -29,7 +29,7 @@ SET(PROJECT_URL "")
SETUP_PROJECT()
FINDPYTHON(REQUIRED 2.7 EXACT)
FINDPYTHON(REQUIRED EXACT 2.7)
ADD_REQUIRED_DEPENDENCY ("dynamic_graph_bridge >= 3")
# Needs only the Python classes related to ConstraintGraphFactory.
......@@ -38,17 +38,6 @@ ADD_REQUIRED_DEPENDENCY ("sot-core >= 3")
ADD_REQUIRED_DEPENDENCY ("dynamic-graph-python >= 2")
ADD_REQUIRED_DEPENDENCY ("sot_hpp_msgs")
SET(FILES
supervisor.py
tools.py
ros_interface.py
factory.py
__init__.py)
FOREACH(F ${FILES})
PYTHON_INSTALL_ON_SITE("sot_hpp" ${F})
ENDFOREACH()
ADD_SUBDIRECTORY(src)
SETUP_PROJECT_FINALIZE()
......@@ -61,7 +61,7 @@ MACRO(DYNAMIC_GRAPH_HPP_PYTHON_MODULE SUBMODULENAME LIBRARYNAME TARGETNAME)
DESTINATION ${PYTHON_INSTALL_DIR}
)
ENDMACRO(DYNAMIC_GRAPH_PYTHON_MODULE SUBMODULENAME)
ENDMACRO()
SET(LIBRARY_NAME ${PROJECT_NAME})
......@@ -87,3 +87,14 @@ DYNAMIC_GRAPH_HPP_PYTHON_MODULE("sot" ${LIBRARY_NAME} wrap)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dynamic_graph_hpp/__init__.py "")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/dynamic_graph_hpp/__init__.py
DESTINATION ${PYTHON_SITELIB}/dynamic_graph_hpp/)
SET(FILES
supervisor.py
tools.py
ros_interface.py
factory.py
__init__.py)
FOREACH(F ${FILES})
PYTHON_INSTALL_ON_SITE("sot_hpp" ${F})
ENDFOREACH()
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