mirror of
https://github.com/GerbilSoft/zlib-ng.git
synced 2025-06-18 19:45:37 -04:00

Use cmake_minimum_required(VERSION <min>...<policy_max>) syntax to set the policy at the same time as the compatibile CMake version.
14 lines
296 B
CMake
14 lines
296 B
CMake
cmake_minimum_required(VERSION 3.5.1...3.29.0)
|
|
|
|
project(zlib-ng-add-subdirecory-test C)
|
|
|
|
include(CTest)
|
|
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(ZLIB_ENABLE_TESTS ON CACHE BOOL "Build test binaries" FORCE)
|
|
|
|
add_subdirectory(../.. zlib-ng)
|
|
|
|
add_executable(app main.c)
|
|
target_link_libraries(app zlibstatic)
|