2015-09-19 17:13:08 +00:00
|
|
|
project(TestDynamicQObject)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
2015-12-28 12:21:02 +00:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2015-09-19 17:13:08 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2015-11-23 20:33:17 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/lib/include ${CMAKE_SOURCE_DIR}/lib/include/Qt)
|
2015-09-19 17:13:08 +00:00
|
|
|
|
2015-12-28 12:21:02 +00:00
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2015-09-19 17:13:08 +00:00
|
|
|
find_package(Qt5Test REQUIRED)
|
2015-12-28 12:21:02 +00:00
|
|
|
find_package(Qt5Quick REQUIRED)
|
2016-06-18 18:16:26 +00:00
|
|
|
find_package(Qt5QuickTest REQUIRED)
|
2015-09-19 17:13:08 +00:00
|
|
|
|
2016-06-19 09:46:47 +00:00
|
|
|
add_executable(${PROJECT_NAME} Resources.qrc
|
|
|
|
test_dotherside.cpp
|
2018-11-28 21:55:26 +00:00
|
|
|
MockQObject.h
|
2016-06-19 09:46:47 +00:00
|
|
|
MockQObject.cpp
|
2018-11-28 21:55:26 +00:00
|
|
|
MockQAbstractItemModel.h
|
2017-03-05 17:18:30 +00:00
|
|
|
MockQAbstractItemModel.cpp
|
2016-06-19 09:46:47 +00:00
|
|
|
Global.h
|
|
|
|
main.qml
|
|
|
|
testQObject.qml
|
|
|
|
testQAbstractItemModel.qml
|
2016-06-21 21:15:58 +00:00
|
|
|
testQDeclarative.qml
|
2016-06-19 09:46:47 +00:00
|
|
|
)
|
2016-06-07 20:52:29 +00:00
|
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
|
2015-12-28 12:21:02 +00:00
|
|
|
target_link_libraries(${PROJECT_NAME} DOtherSideStatic Qt5::Quick Qt5::Widgets Qt5::Test Qt5::Core)
|