1 Star 0 Fork 0

lycium_pkg_mirror / lunasvg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Samuel Ugochukwu 提交于 2023-12-23 18:47 . Update CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
project(lunasvg VERSION 2.3.9 LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 11)
option(BUILD_SHARED_LIBS "Build as a shared library" OFF)
option(LUNASVG_BUILD_EXAMPLES "Build example(s)" OFF)
add_library(lunasvg)
add_subdirectory(include)
add_subdirectory(source)
add_subdirectory(3rdparty/plutovg)
if(BUILD_SHARED_LIBS)
target_compile_definitions(lunasvg PUBLIC LUNASVG_SHARED)
target_compile_definitions(lunasvg PRIVATE LUNASVG_EXPORT)
endif()
if(LUNASVG_BUILD_EXAMPLES)
add_executable(svg2png svg2png.cpp)
target_link_libraries(svg2png PRIVATE lunasvg)
target_include_directories(svg2png PRIVATE 3rdparty/stb)
endif()
set(LUNASVG_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)
set(LUNASVG_INCDIR ${CMAKE_INSTALL_PREFIX}/include)
install(FILES
include/lunasvg.h
DESTINATION ${LUNASVG_INCDIR}
)
install(TARGETS lunasvg
LIBRARY DESTINATION ${LUNASVG_LIBDIR}
ARCHIVE DESTINATION ${LUNASVG_LIBDIR}
INCLUDES DESTINATION ${LUNASVG_INCDIR}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lycium_pkg_mirror/lunasvg.git
git@gitee.com:lycium_pkg_mirror/lunasvg.git
lycium_pkg_mirror
lunasvg
lunasvg
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891