# taken from http://johnlamp.net/cmake-tutorial-5-functionally-improved-testing.html function(add_gmock_test target) add_executable(${target} ${ARGN}) target_link_libraries(${target} gtest gtest_main gmock_main ${CMAKE_THREAD_LIBS_INIT} kaminpar_impl) set_property(TARGET ${target} PROPERTY CXX_STANDARD 20) set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED ON) add_test(${target} ${target}) endfunction()