1 Star 0 Fork 4

tangjie02/kiran-qdbusxml2cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.5)
project(kiran-qdbusxml2cpp)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS DBus Core)
add_executable(${PROJECT_NAME} kiran-qdbusxml2cpp.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt5::Core
Qt5::DBus)
target_include_directories(${PROJECT_NAME} PRIVATE
${Qt5DBus_PRIVATE_INCLUDE_DIRS})
include(GNUInstallDirs)
set(KIRANDBUSXML2CPP_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})
install(TARGETS ${PROJECT_NAME} DESTINATION ${KIRANDBUSXML2CPP_INSTALL_PATH})
configure_file(${CMAKE_SOURCE_DIR}/data/KiranDBusGenerateConfig.cmake.in ${CMAKE_BINARY_DIR}/KiranDBusGenerateConfig.cmake @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/KiranDBusGenerateConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/KiranDBusGenerate/)
install(FILES data/KiranDBusGenerateMacros.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/KiranDBusGenerate/)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tangjie02/kiran-qdbusxml2cpp.git
git@gitee.com:tangjie02/kiran-qdbusxml2cpp.git
tangjie02
kiran-qdbusxml2cpp
kiran-qdbusxml2cpp
master

搜索帮助