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

0001 CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
0002 ADD_DEFINITIONS("-std=c++11")
0003 
0004 PROJECT(modelviewtester)
0005 
0006 SET(QT_MIN_VERSION  "5.7.0")
0007 SET(KF5_DEP_VERSION "5.50.0" )
0008 set(CMAKE_BUILD_TYPE DEBUG)
0009 
0010 option(BUILD_COVERAGE ON)
0011 
0012 IF(POLICY CMP0063)
0013     CMAKE_POLICY(SET CMP0063 NEW)
0014 ENDIF(POLICY CMP0063)
0015 
0016 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0017     Core
0018     Gui
0019     Quick
0020     QuickWidgets
0021     Widgets
0022     QuickControls2
0023 )
0024 
0025 # Kirigami is used for the menu and manual testing steps
0026 find_package(KF5 "${KF5_DEP_VERSION}" REQUIRED COMPONENTS
0027     Kirigami2
0028 )
0029 
0030 INCLUDE_DIRECTORIES(SYSTEM ${Qt5Core_INCLUDES})
0031 
0032 SET(modelviewtester_SRC
0033 modelviewtester.cpp
0034 freefloatingmodel.cpp
0035 testmain.cpp
0036 )
0037 
0038 QT5_ADD_RESOURCES(modelviewtester_SRC
0039     modeltest.qrc
0040 )
0041 
0042 set(CMAKE_AUTOMOC ON)
0043 
0044 ADD_EXECUTABLE( modelviewtester ${modelviewtester_SRC} )
0045 
0046 TARGET_LINK_LIBRARIES( modelviewtester
0047     kquickitemviews
0048     KF5::Kirigami2
0049     Qt5::Core
0050     Qt5::Gui
0051     Qt5::Widgets
0052     Qt5::Quick
0053 )