aboutsummaryrefslogtreecommitdiff
path: root/autotests/CMakeLists.txt
blob: c11901bfa979d4ebee8fae07c4bb4a4a13e1e28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
#
# 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)
if(${PROJECT_NAME}_ENABLE_E2EE)
    quotient_add_test(NAME testolmaccount)
    quotient_add_test(NAME testgroupsession)
    quotient_add_test(NAME testolmsession)
    quotient_add_test(NAME testolmutility)
    quotient_add_test(NAME testfilecrypto)
endif()