19 Star 3 Fork 4

openKylin/kylin-mobile-assistant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.60 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.14)
project(kylin-mobile-assistant)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt5 COMPONENTS Widgets Network LinguistTools REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Network LinguistTools REQUIRED)
#option(ASAN_TEST "Build with -fsanitize" ON)
#if (ASAN_TEST)
# set(CMAKE_CXX_FLAGS " -fsanitize=address -g ")
#endif ()
ADD_DEFINITIONS(-DQT_NO_KEYWORDS) # CONFIG += no_keywords qt关键字冲突
file(GLOB TS_FILES "${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts")
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/translations/generate_translations_pm.sh ${CMAKE_CURRENT_SOURCE_DIR})
set(QRC_MAIN "${CMAKE_CURRENT_SOURCE_DIR}/res/resources.qrc")
add_executable(kylin-mobile-assistant
main.cpp
${QRC_MAIN}
)
set(SUBDIRECTORIES_MAIN
common
connectmanage
filesearch
filetransfer
filesync
kylin-mobile-assistant-mountftp
plugin/peony-vfs-kylin-multiterminal
plugin/peony-send-to-mobile-assistant
projection
ui
filedb
dbus
third_party/plugins-simple
)
foreach (SUBDIRECTORY_MAIN ${SUBDIRECTORIES_MAIN})
add_subdirectory(${SUBDIRECTORY_MAIN})
endforeach ()
find_package(PkgConfig REQUIRED)
pkg_check_modules(KYSDK_ALM kysdk-alm)
target_include_directories(kylin-mobile-assistant PUBLIC ${KYSDK_ALM_INCLUDE_DIRS})
target_link_directories(kylin-mobile-assistant PUBLIC ${KYSDK_ALM_LIBRARY_DIRS})
target_link_libraries(kylin-mobile-assistant PUBLIC ${KYSDK_ALM_LIBRARIES})
pkg_check_modules(KYSDK_LOG kysdk-log)
target_include_directories(kylin-mobile-assistant PUBLIC ${KYSDK_LOG_INCLUDE_DIRS})
target_link_directories(kylin-mobile-assistant PUBLIC ${KYSDK_LOG_LIBRARY_DIRS})
target_link_libraries(kylin-mobile-assistant PUBLIC ${KYSDK_LOG_LIBRARIES})
pkg_check_modules(KYSDK_WAYLANDHELPER kysdk-waylandhelper)
target_include_directories(kylin-mobile-assistant PUBLIC ${KYSDK_WAYLANDHELPER_INCLUDE_DIRS})
target_link_directories(kylin-mobile-assistant PUBLIC ${KYSDK_WAYLANDHELPER_LIBRARY_DIRS})
target_link_libraries(kylin-mobile-assistant PUBLIC ${KYSDK_WAYLANDHELPER_LIBRARIES})
set(TOP_DIR ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(kylin-mobile-assistant PUBLIC ${TOP_DIR}/kabase/Qt)
target_include_directories(kylin-mobile-assistant PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(kylin-mobile-assistant PRIVATE
Qt${QT_VERSION_MAJOR}::Widgets
mobileui
mobile_dbus
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openkylin/kylin-mobile-assistant.git
git@gitee.com:openkylin/kylin-mobile-assistant.git
openkylin
kylin-mobile-assistant
kylin-mobile-assistant
master

搜索帮助