Warning, /libraries/kproperty/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 set(FILES_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
0013 add_definitions(
0014 -DFILES_OUTPUT_DIR=\"${FILES_OUTPUT_DIR}\"
0015 )
0016
0017 include_directories(
0018 ${CMAKE_BINARY_DIR}/src/kproperty
0019 ${CMAKE_BINARY_DIR}/src/editors/kproperty
0020 )
0021
0022 include(ECMAddTests)
0023
0024 find_package(Qt5Test REQUIRED)
0025
0026 ecm_add_tests(
0027 KPropertyTest.cpp
0028 KPropertySetTest.cpp
0029 LINK_LIBRARIES
0030 Qt5::Test
0031 KPropertyWidgets
0032 )
0033
0034 if(NOT WIN32) #TODO enable for Windows when headers_test.sh is ported e.g. to python
0035 add_subdirectory(headers)
0036 endif()