Merge pull request #13682 from JoshuaVandaele/libspng-cmake4
libspng: Update to 0.7.4 and clean up CMake
This commit is contained in:
2 files changed
+11
-9
No files matched your search
Vendored
+10
-8
@@ -1,10 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
option(SPNG_SHARED "Build shared lib" OFF)
|
||||
option(SPNG_STATIC "Build static lib" ON)
|
||||
option(BUILD_EXAMPLES "Build examples" OFF)
|
||||
|
||||
project(spng C)
|
||||
set(_PREV_CMAKE_SKIP_INSTALL_RULES "${CMAKE_SKIP_INSTALL_RULES}")
|
||||
set(CMAKE_SKIP_INSTALL_RULES TRUE)
|
||||
|
||||
add_library(spng STATIC libspng/spng/spng.c)
|
||||
target_compile_definitions(spng PUBLIC SPNG_STATIC)
|
||||
target_link_libraries(spng PUBLIC ZLIB::ZLIB)
|
||||
target_include_directories(spng PUBLIC libspng/spng)
|
||||
dolphin_disable_warnings(spng)
|
||||
add_library(spng::spng ALIAS spng)
|
||||
add_subdirectory(libspng)
|
||||
|
||||
set(CMAKE_SKIP_INSTALL_RULES "${_PREV_CMAKE_SKIP_INSTALL_RULES}")
|
||||
|
||||
add_library(spng::spng ALIAS spng_static)
|
||||
Vendored
+1
-1
Submodule Externals/libspng/libspng updated: dc5b1032c0...fb768002d4.
Reference in new issue
Block a user