Debian Codegraph @

libs/zziplib/zziplib-src/CMakeLists.txt

raw
1 cmake_minimum_required (VERSION 3.1)
2 project(zziplib VERSION "0.13.72" LANGUAGES C)
3
4 if(NOT CMAKE_BUILD_TYPE)
5 set(CMAKE_BUILD_TYPE Release)
6 endif(NOT CMAKE_BUILD_TYPE)
7
8 ### Path to additional CMake modules
9 # set(CMAKE_MODULE_PATH
10 # ${CMAKE_SOURCE_DIR}/cmake
11 # ${CMAKE_MODULE_PATH})
12
13 include ( GNUInstallDirs )
14
15 option(BUILD_SHARED_LIBS "Build a shared library" ON)
16 option(BUILD_STATIC_LIBS "Build the static library" OFF)
17 option(BUILD_TESTS "Build test programs" OFF)
18 option(MSVC_STATIC_RUNTIME "Build with static runtime libs (/MT)" ON)
19 option(ZZIPMMAPPED "Build libzzipmmapped (not fully portable)" ON)
20 option(ZZIPFSEEKO "Build libzzipfseeko (based on posix.1 api)" ON)
21 option(ZZIPWRAP "Build libzzipwrap (non-installed example)" ON)
22 option(ZZIPSDL "Build zzcatsdl (includable example code)" ON)
23 option(ZZIPBINS "Build bins/unzzip (unzip-like executables)" ON)
24 option(ZZIPTEST "Build test/zzipself (self-extract example)" ON)
25 option(ZZIPDOCS "Build docs/manpages (and website content)" ON)
26
27 add_subdirectory(zzip)
28
29 if(ZZIPWRAP)
30 add_subdirectory(zzipwrap)
31 endif()
32
33 if(ZZIPSDL)
34 add_subdirectory(SDL)
35 endif()
36
37 if(ZZIPBINS)
38 add_subdirectory(bins)
39 endif()
40
41 if(ZZIPTEST)
42 add_subdirectory(test)
43 endif()
44
45 if(ZZIPDOCS)
46 add_subdirectory(docs)
47 endif()