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