Warning, /sdk/kdiff3/src/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2018-2021 Michael Reeves reeves.87@gmail.com
0002 # SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 if(NOT BUILD_WITH_QT6)
0005     find_package(
0006         Qt5 ${QT_MIN_VERSION}
0007         REQUIRED
0008         COMPONENTS
0009         Test
0010     )
0011 else()
0012     find_package(
0013         Qt6 ${QT_MIN_VERSION}
0014         REQUIRED
0015         COMPONENTS
0016         Test
0017     )
0018 
0019     set(COMPATLIB Qt6::Core5Compat)
0020 endif()
0021 add_definitions(-DAUTOTEST)
0022 
0023 ecm_add_test(connectiontest.cpp
0024     TEST_NAME "connectiontest"
0025     LINK_LIBRARIES Qt::Test
0026 )
0027 
0028 ecm_add_test(commentparser.cpp ../CommentParser.cpp
0029     TEST_NAME "commentparser"
0030     LINK_LIBRARIES Qt::Test
0031 )
0032 
0033 ecm_add_test(CvsIgnoreListTest.cpp ../CvsIgnoreList.cpp ../fileaccess.cpp ../Utils.cpp ../ProgressProxy.cpp ../CompositeIgnoreList.cpp ../Logging.cpp
0034     TEST_NAME "cvsignorelisttest"
0035     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets
0036 )
0037 
0038 ecm_add_test(FileAccessTest.cpp ../fileaccess.cpp ../Utils.cpp ../ProgressProxy.cpp ../CvsIgnoreList.cpp ../CompositeIgnoreList.cpp ../Logging.cpp
0039     TEST_NAME "fileaccesstest"
0040     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets
0041 )
0042 
0043 ecm_add_test(combinertest.cpp
0044     TEST_NAME "combinertest"
0045     LINK_LIBRARIES Qt::Test
0046 )
0047 
0048 ecm_add_test(CompositeIgnoreListTest.cpp ../CompositeIgnoreList.cpp
0049     TEST_NAME "CompositeIgnoreListTest"
0050     LINK_LIBRARIES Qt::Test
0051 )
0052 
0053 ecm_add_test(GitIgnoreListTest.cpp ../GitIgnoreList.cpp ../fileaccess.cpp ../Utils.cpp ../ProgressProxy.cpp ../Logging.cpp
0054     TEST_NAME "GitIgnoreListTest"
0055     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets
0056 )
0057 
0058 ecm_add_test(datareadtest.cpp ../fileaccess.cpp ../SourceData.cpp ../CommentParser.cpp ../Utils.cpp ../ProgressProxy.cpp ../Logging.cpp
0059     TEST_NAME "datareadtest"
0060     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets ${COMPATLIB} KF${KF_MAJOR_VERSION}::ConfigCore
0061 )
0062 
0063 ecm_add_test(DiffTest.cpp ../diff.cpp ../Logging.cpp ../Utils.cpp ../ProgressProxy.cpp ../gnudiff_io.cpp ../gnudiff_analyze.cpp ../gnudiff_xmalloc.cpp ../fileaccess.cpp ../SourceData.cpp ../CommentParser.cpp
0064     TEST_NAME "difftest"
0065     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets ${COMPATLIB} KF${KF_MAJOR_VERSION}::ConfigCore
0066 )
0067 
0068 ecm_add_test(Diff3LineTest.cpp ../diff.cpp ../gnudiff_io.cpp ../gnudiff_analyze.cpp ../gnudiff_xmalloc.cpp ../Logging.cpp ../Utils.cpp ../ProgressProxy.cpp
0069     TEST_NAME "diff3linetest"
0070     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets KF${KF_MAJOR_VERSION}::ConfigCore
0071 )
0072 
0073 ecm_add_test(ManualDiffHelpListTest.cpp ../diff.cpp ../gnudiff_io.cpp ../gnudiff_analyze.cpp ../gnudiff_xmalloc.cpp ../Logging.cpp ../Utils.cpp ../ProgressProxy.cpp
0074     TEST_NAME "manualdiffhelplisttest"
0075     LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets KF${KF_MAJOR_VERSION}::ConfigCore
0076 )