Commit d209a926 authored by Alexander Dielen's avatar Alexander Dielen

added tests to cmake

parent e23464c5
......@@ -9,3 +9,14 @@ add_subdirectory(pybind11)
include_directories(${OPENMESH_INCLUDE_DIRS})
pybind11_add_module(openmesh src/Bindings.cc src/InputOutput.cc src/Miscellaneous.cc)
target_link_libraries(openmesh PRIVATE ${OPENMESH_LIBRARIES})
enable_testing()
add_test(
NAME discover_tests
COMMAND ${PYTHON_EXECUTABLE} -m unittest
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests
)
set_tests_properties(
discover_tests PROPERTIES
ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}
)
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