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

0001 remove_definitions(
0002     -DQT_NO_KEYWORDS
0003     -DQT_NO_SIGNALS_SLOTS_KEYWORDS
0004     -DQT_NO_CAST_FROM_ASCII
0005     -DQT_USE_QSTRINGBUILDER
0006 )
0007 
0008 include(ECMAddTests)
0009 
0010 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
0011 
0012 # A helper library for report-related tests
0013 add_library(KReportTestUtils SHARED
0014     KReportTestUtils.cpp
0015 )
0016 target_link_libraries(KReportTestUtils
0017     PUBLIC
0018         Qt5::Test
0019         KReport
0020 )
0021 generate_export_header(KReportTestUtils)
0022 
0023 find_package(Qt5Test REQUIRED)
0024 
0025 ecm_add_tests(
0026     ElementsTest.cpp
0027     PluginsTest.cpp
0028     LINK_LIBRARIES
0029         KReportTestUtils
0030 )
0031 
0032 if(NOT WIN32) #TODO enable for Windows when headers_test.sh is ported e.g. to python
0033     add_subdirectory(headers)
0034 endif()
0035 add_subdirectory(format)