1 Star 0 Fork 3

kylintj/ks-scmc-gui

forked from openEuler/ks-scmc-gui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
project(ks-scmc-gui)
cmake_minimum_required(VERSION 2.8)
include(GNUInstallDirs)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(_REFLECTION grpc++_reflection)
set(_PROTOBUF_LIBPROTOBUF protobuf)
set(_GRPC_GRPCPP grpc++)
find_program(_PROTOBUF_PROTOC protoc)
find_package(Protobuf REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Qt5 COMPONENTS Widgets REQUIRED LinguistTools)
find_package(Qt5Charts)
#pkg_search_module(GRPC REQUIRED grpc)
#find_package(gRPC CONFIG REQUIRED)
pkg_search_module(KIRAN_WIDGETS_QT5 REQUIRED kiranwidgets-qt5)
pkg_search_module(KLOG_QT5 REQUIRED klog-qt5)
pkg_search_module(CRYPTOPP REQUIRED cryptopp)
pkg_search_module(KYLIN_LICENSE REQUIRED kylin-license)
pkg_search_module(GRPCXX REQUIRED grpc++)
pkg_search_module(PROTOBUF REQUIRED protobuf)
pkg_search_module(LIBNOTIFY REQUIRED libnotify)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(DATA_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}")
set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}")
set(INSTALL_DIR "/usr/libexec")
set(ICON_DIR "${DATA_DIR}/${PROJECT_NAME}/icons")
set(TRANSLATIONS_DIR "${DATA_DIR}/${PROJECT_NAME}/translations/")
#添加config.h.in文件
configure_file (
"${PROJECT_SOURCE_DIR}/config/config.h.in"
"${PROJECT_BINARY_DIR}/config/config.h"
)
add_subdirectory(proto)
add_subdirectory(src)
add_subdirectory(config)
add_subdirectory(data/images)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kylntj/ks-scmc-gui.git
git@gitee.com:kylntj/ks-scmc-gui.git
kylntj
ks-scmc-gui
ks-scmc-gui
master

搜索帮助