ESGRAF48/source/SubTests/Plural/CMakeLists.txt

48 lines
829 B
Text
Raw Normal View History

2018-06-04 16:48:58 +00:00
cmake_minimum_required(VERSION 3.6)
project(Plural LANGUAGES CXX)
find_package(Qt5Widgets REQUIRED)
2018-11-18 16:40:07 +00:00
find_package(Protobuf REQUIRED)
2018-06-04 16:48:58 +00:00
set(CMAKE_AUTOMOC ON)
qt5_wrap_ui(UI_HEADERS
PluralWidget.ui
)
2018-11-18 16:40:07 +00:00
set(Plural_PROTO_FILES
../../../proto/PluralModel.proto
)
protobuf_generate_cpp(Plural_PROTO_SRCS Plural_PROTO_HDRS ${Plural_PROTO_FILES})
2018-06-04 16:48:58 +00:00
add_library(${PROJECT_NAME}
PluralWidget.cpp
PluralModel.cpp
${UI_HEADERS}
2018-11-18 16:40:07 +00:00
${Plural_PROTO_SRCS}
${Plural_PROTO_HDRS}
2018-06-04 16:48:58 +00:00
)
set_target_properties(${PROJECT_NAME}
PROPERTIES CXX_STANDARD 14
)
target_include_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}
2018-11-18 16:40:07 +00:00
${Protobuf_INCLUDE_DIRS}
2018-06-04 16:48:58 +00:00
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
CheckableItem
CheckableTest
CheckableTestModel
Qt5::Widgets
2018-11-18 16:40:07 +00:00
${Protobuf_LIBRARIES}
2018-06-04 16:48:58 +00:00
)