Warning, /graphics/glaxnimate/test/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0002 # SPDX-FileCopyrightText: 2023 Julius Künzel <jk.kdedev@smartlab.uber.space>
0003 # SPDX-License-Identifier: BSD-2-Clause
0004
0005 include(ECMAddTests)
0006
0007 include_directories(
0008 ${CMAKE_SOURCE_DIR}/src
0009 # ${CMAKE_SOURCE_DIR}/external/QtAppSetup/src
0010 ${CMAKE_SOURCE_DIR}/src/core
0011 )
0012
0013 set(TESTS_LINK_LIBS
0014 Qt${QT_MAJOR_VERSION}::Test
0015 Qt${QT_MAJOR_VERSION}::Widgets
0016 KF${KF_MAJOR}::I18n
0017 QtColorWidgets
0018 QtAppSetup
0019 )
0020
0021 # Single source file tests, linking only to default libs
0022
0023 ecm_add_tests(
0024 test_bezier_solver.cpp
0025 test_riff.cpp
0026 LINK_LIBRARIES ${TESTS_LINK_LIBS}
0027 )
0028
0029 # Single source file tests, linking to core lib additionally
0030
0031 ecm_add_tests(
0032 test_property.cpp
0033 test_trim_path.cpp
0034 test_trace.cpp
0035 test_aep_gradient_xml.cpp
0036 LINK_LIBRARIES ${TESTS_LINK_LIBS} ${LIB_NAME_CORE}
0037 )
0038
0039 # Multi source files tests
0040
0041 ecm_add_test(
0042 test_bezier_length.cpp
0043 ../src/core/math/bezier/bezier.cpp
0044 ../src/core/math/bezier/point.cpp
0045 ../src/core/math/bezier/bezier_length.cpp
0046 TEST_NAME test_bezier_length
0047 LINK_LIBRARIES ${TESTS_LINK_LIBS}
0048 )
0049
0050 ecm_add_test(
0051 test_keyframe_transition.cpp
0052 ../src/core/model/animation/keyframe_transition.cpp
0053 ../src/core/math/polynomial.cpp
0054 TEST_NAME test_keyframe_transition
0055 LINK_LIBRARIES ${TESTS_LINK_LIBS}
0056 )
0057
0058 ecm_add_test(
0059 test_cos_parser.cpp
0060 ../src/core/io/aep/string_decoder.cpp
0061 TEST_NAME test_cos_parser
0062 LINK_LIBRARIES ${TESTS_LINK_LIBS}
0063 )