Commit 70caf3b0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

deactivate py2cpp tests when py2ccp is not activated

parent 32fc4c93
......@@ -51,11 +51,13 @@ target_link_libraries(test_walk_params PUBLIC ${PROJECT_NAME}_unittest)
target_compile_definitions(test_walk_params PRIVATE PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
if(BUILD_PYTHON_INTERFACE)
ADD_UNIT_TEST(test_init_shooting_problem test_init_shooting_problem.cpp)
target_link_libraries(test_init_shooting_problem PUBLIC ${PROJECT_NAME}_py2cpp)
target_compile_definitions(test_init_shooting_problem PRIVATE PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
#set_tests_properties(test_init_shooting_problem PROPERTIES ENVIRONMENT
# "PYTHONPATH=${PROJECT_SOURCE_DIR}/mpc:${PROJECT_BINARY_DIR}/python")
if(BUILD_PY2CPP_INTERFACE)
ADD_UNIT_TEST(test_init_shooting_problem test_init_shooting_problem.cpp)
target_link_libraries(test_init_shooting_problem PUBLIC ${PROJECT_NAME}_py2cpp)
target_compile_definitions(test_init_shooting_problem PRIVATE PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
#set_tests_properties(test_init_shooting_problem PROPERTIES ENVIRONMENT
# "PYTHONPATH=${PROJECT_SOURCE_DIR}/mpc:${PROJECT_BINARY_DIR}/python")
endif()
add_subdirectory(python)
endif()
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