We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c02a39 commit 4eeb0e8Copy full SHA for 4eeb0e8
unittest/CMakeLists.txt
@@ -73,6 +73,15 @@ function(add_python_eigenpy_lib_unit_test name source)
73
set(test_target ${PROJECT_NAME}-${name})
74
add_python_unit_test(${test_target} ${source} "lib" "bin" "python")
75
set_tests_properties(${test_target} PROPERTIES DEPENDS ${PYWRAP})
76
+ string(REPLACE "unittest/" "" source_rel "${source}")
77
+ add_custom_target(
78
+ "test-${name}"
79
+ ${CMAKE_COMMAND}
80
+ -E
81
+ env
82
+ PYTHONPATH=${PROJECT_BINARY_DIR}/lib:${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}
83
+ ${PYTHON_EXECUTABLE}
84
+ "${CMAKE_CURRENT_SOURCE_DIR}/${source_rel}")
85
endfunction()
86
87
function(add_python_eigenpy_unit_test name source)
0 commit comments