2018-05-10 16:41:14 +00:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
|
|
|
|
project(LogoTest LANGUAGES CXX)
|
|
|
|
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
2018-05-18 18:12:48 +00:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2018-05-10 16:41:14 +00:00
|
|
|
|
2018-05-23 16:52:13 +00:00
|
|
|
qt5_wrap_ui(LOGO_TEST_UI
|
2018-05-10 16:41:14 +00:00
|
|
|
mainwindow.ui
|
|
|
|
)
|
2018-05-18 18:36:48 +00:00
|
|
|
|
2018-05-23 16:52:13 +00:00
|
|
|
qt5_add_resources(LOGO_TEST_QRC
|
2018-05-18 18:36:48 +00:00
|
|
|
mainwindow.qrc
|
2018-05-18 18:12:48 +00:00
|
|
|
)
|
2018-05-10 16:41:14 +00:00
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
LogoTest.cpp
|
2018-05-16 05:02:12 +00:00
|
|
|
DataModel.cpp
|
2018-05-10 16:41:14 +00:00
|
|
|
mainwindow.cpp
|
2018-05-23 16:52:13 +00:00
|
|
|
${LOGO_TEST_UI}
|
|
|
|
${LOGO_TEST_QRC}
|
2018-05-10 16:41:14 +00:00
|
|
|
)
|
|
|
|
|
2018-05-15 11:11:40 +00:00
|
|
|
set_target_properties(${PROJECT_NAME}
|
|
|
|
PROPERTIES CXX_STANDARD 14
|
|
|
|
)
|
|
|
|
|
2018-05-10 16:41:14 +00:00
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
2018-05-17 18:04:42 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
2018-05-10 16:41:14 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
2018-05-24 18:35:16 +00:00
|
|
|
CheckableItem
|
|
|
|
CheckableTest
|
|
|
|
CheckableTestModel
|
2018-05-18 18:36:48 +00:00
|
|
|
MetaData
|
2018-05-23 16:43:57 +00:00
|
|
|
VerbEnd
|
2018-05-20 17:13:18 +00:00
|
|
|
Genus
|
2018-05-10 16:41:14 +00:00
|
|
|
Qt5::Widgets
|
|
|
|
)
|
2018-05-18 18:36:48 +00:00
|
|
|
|
2018-05-24 06:16:04 +00:00
|
|
|
add_subdirectory(CheckableItem)
|
2018-05-24 18:35:16 +00:00
|
|
|
add_subdirectory(CheckableTest)
|
|
|
|
add_subdirectory(CheckableTestModel)
|
2018-05-24 06:16:04 +00:00
|
|
|
|
2018-05-18 18:36:48 +00:00
|
|
|
add_subdirectory(MetaData)
|
2018-05-23 16:43:57 +00:00
|
|
|
add_subdirectory(VerbEnd)
|
2018-05-20 17:13:18 +00:00
|
|
|
add_subdirectory(Genus)
|