mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
0d52738239
e0f786c9b Fix parseStyle REVERT: d13d8e521 Refactoring REVERT: 4925c87a8 Update REVERT: 794c38591 Update REVERT: 49eee9643 Update REVERT: 914aee5ea Update REVERT: 3bb00ecee Fix ParserString string-view iterator cast in windows REVERT: fabea2008 Fix string-view iterator cast in windows REVERT: bbcf0d34f Update REVERT: 081df20f2 Update REVERT: fe3101f91 Refactoring REVERT: e9a41dc83 Refactoring git-subtree-dir: external/lunasvg git-subtree-split: e0f786c9be6fae1ffabddfe56fb1e0a1a7eb775d
40 lines
963 B
CMake
Executable file
40 lines
963 B
CMake
Executable file
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(lunasvg VERSION 2.3.2 LANGUAGES CXX C)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
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/software)
|
|
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}
|
|
)
|