diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fb344dc..d78fd5f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -21,3 +21,8 @@ file(COPY data DESTINATION ${CMAKE_BINARY_DIR}) add_executable(${target} ${core_sources}) target_link_libraries(${target} ${libraries}) GTEST_ADD_TESTS(tests "" ${core_sources}) + +add_custom_target(run-tests + COMMAND ${CMAKE_BINARY_DIR}/bin/tests + DEPENDS ${target} + WORKING_DIRECTORY ${CMAKE_BINARY_DIR})