mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
fd498ff35e
ead790126 fix name conflict with rlottie #100 6192f2536 Fix fill default color #105 be5ec7a4f Release v2.3.4 29c32978d Fix std::clamp bug #105 41f21ccb1 Release v2.3.3 git-subtree-dir: external/lunasvg git-subtree-split: ead790126004b86a2dbbe9f4aaf27e82e419721e
39 lines
927 B
CMake
Executable file
39 lines
927 B
CMake
Executable file
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(lunasvg VERSION 2.3.4 LANGUAGES CXX C)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
option(BUILD_SHARED_LIBS "Builds as shared library" OFF)
|
|
option(LUNASVG_BUILD_EXAMPLES "Builds examples" 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_subdirectory(example)
|
|
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}
|
|
)
|