# SPDX-FileCopyrightText: 2021 Carl Schwan # # SPDX-License-Identifier: BSD-3-Clause include(CMakeParseArguments) function(QUOTIENT_ADD_TEST) cmake_parse_arguments(ARG "" "NAME" "" ${ARGN}) add_executable(${ARG_NAME} ${ARG_NAME}.cpp) target_link_libraries(${ARG_NAME} ${Qt}::Core ${Qt}::Test Quotient) add_test(NAME ${ARG_NAME} COMMAND ${ARG_NAME}) endfunction() quotient_add_test(NAME callcandidateseventtest) quotient_add_test(NAME utiltests)