1 Star 0 Fork 0

setoutsoft/swinx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
huangjianxiong1 提交于 2024-12-16 17:38 . 增加WM_EX_TRANSPARENT支持。
cmake_minimum_required(VERSION 3.1)
project(swinx)
#add gtk demo
find_package(PkgConfig REQUIRED)
if(0)
#use local build cairo lib
#pkg_check_modules(CAIRO REQUIRED cairo)
include_directories("/home/flyhigh/work/build/cairo/include")
link_directories("/home/flyhigh/work/build/cairo/lib")
endif()
add_subdirectory(thirdparty/xkbcommon)
add_subdirectory(thirdparty/libxcb)
add_definitions(-DPLATFORM_EXPORTS)
add_compile_options(-Wno-format-truncation)
file(GLOB_RECURSE HEADERS include/*.hpp include/*.h)
file(GLOB_RECURSE SRCS
thirdparty/xcb-util-image/*.c
thirdparty/xcb-util-renderutil/*.c
thirdparty/xcb-util-keysyms/*.c
thirdparty/xcb-util-wm/*.c
thirdparty/libxcb/*.c
src/*.cpp
src/cmnctl32/*.cpp
src/cmnctl32/*.c
)
source_group("Header Files" FILES ${HEADERS})
source_group("Source Files" FILES ${SRCS})
if (NOT ENABLE_SOUI_CORE_LIB)
add_library(swinx SHARED ${SRCS} ${HEADERS})
target_link_libraries(
swinx
libxcb xcb-util cairo uuid xkbcommon
)
else()
add_library(swinx STATIC ${SRCS} ${HEADERS})
endif()
target_include_directories(swinx
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/xcb
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/sysinclude
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/xkbcommon
)
set_target_properties (swinx PROPERTIES
FOLDER swinx
)
install(TARGETS swinx
CONFIGURATIONS Release
RUNTIME DESTINATION bin/Release
LIBRARY DESTINATION lib/Release
ARCHIVE DESTINATION lib/Release
)
install(TARGETS swinx
CONFIGURATIONS Debug
RUNTIME DESTINATION bin/Debug
LIBRARY DESTINATION lib/Debug
ARCHIVE DESTINATION lib/Debug
)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include" DESTINATION swinx/include)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/setoutsoft/swinx.git
git@gitee.com:setoutsoft/swinx.git
setoutsoft
swinx
swinx
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385