Upload Apkdiff Module Source Code

This commit is contained in:
2026-07-04 22:01:38 +08:00
parent dfdbf3acf6
commit 05c93e5ce9
283 changed files with 71378 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.12...3.31)
project(
zlib_find_package_test
LANGUAGES C
VERSION @zlib_VERSION@)
option(ZLIB_BUILD_SHARED "" @ZLIB_BUILD_SHARED@)
option(ZLIB_BUILD_STATIC "" @ZLIB_BUILD_STATIC@)
if(ZLIB_BUILD_SHARED)
find_package(ZLIB @zlib_VERSION@ CONFIG COMPONENTS shared REQUIRED)
add_executable(test_example @zlib_SOURCE_DIR@/test/example.c)
target_link_libraries(test_example ZLIB::ZLIB)
if(NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL ".dll")
add_test(NAME zlib_test_example_shared COMMAND test_example)
endif(NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL ".dll")
endif(ZLIB_BUILD_SHARED)
if(ZLIB_BUILD_STATIC)
find_package(ZLIB @zlib_VERSION@ CONFIG COMPONENTS static REQUIRED)
add_executable(test_example_static @zlib_SOURCE_DIR@/test/example.c)
target_link_libraries(test_example_static ZLIB::ZLIBSTATIC)
add_test(NAME zlib_test_example_static COMMAND test_example_static)
endif(ZLIB_BUILD_STATIC)