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

0001 # SPDX-FileCopyrightText: 2014-2015 Andreas Cord-Landwehr <cordlandwehr@kde.org>
0002 #
0003 # SPDX-License-Identifier: BSD-2-Clause
0004 
0005 include(ECMMarkAsTest)
0006 
0007 find_package(Qt${QT_MAJOR_VERSION}Test ${QT_MIN_VERSION} CONFIG QUIET)
0008 
0009 if(NOT Qt${QT_MAJOR_VERSION}Test_FOUND)
0010     message(STATUS "Qt5Test not found, autotests will not be built.")
0011     return()
0012 endif()
0013 
0014 macro(STEPCORE_UNIT_TESTS)
0015    foreach(_testname ${ARGN})
0016       add_executable(${_testname} ${_testname}.cc)
0017       add_test(NAME stepcore-${_testname} COMMAND ${_testname})
0018       target_include_directories(${_testname} PUBLIC ${CMAKE_SOURCE_DIR})
0019       target_link_libraries(${_testname} stepcore Qt::Test)
0020       ecm_mark_as_test(${_testname})
0021    endforeach()
0022 endmacro()
0023 
0024 stepcore_unit_tests(
0025     test_contacts
0026     test_metaobject
0027     test_forces
0028 #     test_worldcopy #FIXME must be reenabled after sorting out derivation issues
0029 )