#
# Copyright (c) 2018 CNRS Authors: Joseph Mirabel
#
# This file is part of hpp-python hpp-python is free software: you can
# redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# hpp-python is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU General Lesser Public License for more
# details.  You should have received a copy of the GNU Lesser General Public
# License along with hpp-python  If not, see <http://www.gnu.org/licenses/>.

set(PYTHON_UNIT_TESTS
    imports
    liegroup
    load_ur3
    differentiable-function
    path-planner
    rrt
    path
    constraint_graph
    graph_factory2)

foreach(UNIT_TEST ${PYTHON_UNIT_TESTS})
  add_python_unit_test(${UNIT_TEST} tests/${UNIT_TEST}.py src)
endforeach()

set_tests_properties(
  ${PYTHON_UNIT_TESTS}
  PROPERTIES
    ENVIRONMENT_MODIFICATION
    "ROS_PACKAGE_PATH=path_list_prepend:${example-robot-data_INCLUDE_DIRS}/../share;ROS_PACKAGE_PATH=path_list_prepend:${hpp-environments_INCLUDE_DIRS}/../share;"
)
