1 Star 5 Fork 2

Lingmo OS/LingmoDesktop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Floating dream 提交于 2023-05-28 15:08 . Update new name
cmake_minimum_required(VERSION 3.14)
project(desktop LANGUAGES CXX)
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)
find_package(Qt5 COMPONENTS Core DBus Quick LinguistTools REQUIRED)
# find_package(LingmoUI REQUIRED)
find_package(KF5KIO)
find_package(KF5Solid)
find_package(KF5WindowSystem)
find_package(KF5Config)
add_executable(ling-desktop
main.cpp
desktop.cpp
desktop/desktopview.cpp
desktop/dockdbusinterface.cpp
desktop/desktopsettings.cpp
thumbnailer/thumbnailprovider.cpp
thumbnailer/thumbnailcache.cpp
qml.qrc
${DBUS_SOURCES}
)
target_link_libraries(ling-desktop
PRIVATE
Qt5::Core
Qt5::DBus
Qt5::Quick
KF5::KIOCore
KF5::KIOFileWidgets
KF5::KIOWidgets
KF5::Solid
KF5::WindowSystem
KF5::ConfigCore
)
file(GLOB TS_FILES translations/*.ts)
qt5_create_translation(QM_FILES ${TS_FILES})
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
add_dependencies(ling-desktop translations)
install(TARGETS ling-desktop RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${QM_FILES} DESTINATION /usr/share/ling-desktop/translations)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LingmoOS/ling-desktop.git
[email protected]:LingmoOS/ling-desktop.git
LingmoOS
ling-desktop
LingmoDesktop
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385