Warning, /pim/kcalutils/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: none
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 include(ECMAddTests)
0005 
0006 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test)
0007 
0008 set(TEST_DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data")
0009 set(TEST_TEMPLATE_PATH "${CMAKE_SOURCE_DIR}/templates")
0010 set(TEST_PLUGIN_PATH "${CMAKE_BINARY_DIR}/grantlee")
0011 configure_file(test_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/test_config.h @ONLY)
0012 
0013 ecm_add_tests(testdndfactory.cpp teststringify.cpp testtodotooltip.cpp
0014     NAME_PREFIX "kcalutils-"
0015     LINK_LIBRARIES KPim6CalendarUtils KF6::I18n Qt::Test
0016 )
0017 
0018 
0019 ecm_add_test(testincidenceformatter.cpp testincidenceformatter.h
0020     TEST_NAME "testincidenceformatter"
0021     NAME_PREFIX "kcalutils-"
0022     LINK_LIBRARIES KPim6CalendarUtils Qt::Core Qt::Test KF6::CalendarCore KF6::I18n KPim6::IdentityManagementCore KF6::TextTemplate
0023 )
0024 
0025 # Make sure that dates are formatted in C locale
0026 set_tests_properties(kcalutils-testincidenceformatter PROPERTIES ENVIRONMENT "LC_ALL=C")
0027 set_tests_properties(kcalutils-testtodotooltip PROPERTIES ENVIRONMENT "LC_ALL=C")