This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/SubTests/Plural/CMakeLists.txt

46 lines
793 B
CMake
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
2019-02-03 18:53:51 +00:00
PrintableModel
2018-06-04 16:48:58 +00:00
Qt5::Widgets
2018-11-18 16:40:07 +00:00
${Protobuf_LIBRARIES}
2018-06-04 16:48:58 +00:00
)