|
|
|
@ -9,6 +9,7 @@ project(zlib C) |
|
|
|
|
|
|
|
|
|
set(VERSION "1.3.0.1") |
|
|
|
|
|
|
|
|
|
option(ZLIB_BUILD_EXAMPLES "Enable Zlib Examples" ON) |
|
|
|
|
option(ZLIB_STATIC_LINK_CRT "Link the MSVC runtime library statically" OFF) |
|
|
|
|
|
|
|
|
|
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables") |
|
|
|
@ -211,7 +212,7 @@ endif() |
|
|
|
|
#============================================================================ |
|
|
|
|
# Example binaries |
|
|
|
|
#============================================================================ |
|
|
|
|
|
|
|
|
|
if(ZLIB_BUILD_EXAMPLES) |
|
|
|
|
add_executable(example test/example.c) |
|
|
|
|
target_link_libraries(example zlib) |
|
|
|
|
add_test(example example) |
|
|
|
@ -229,3 +230,4 @@ if(HAVE_OFF64_T) |
|
|
|
|
target_link_libraries(minigzip64 zlib) |
|
|
|
|
set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|