Mercurial > molko
comparison CMakeLists.txt @ 335:68287c7bcdb5
core: implement vfs-zip (read-only)
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 13 Oct 2021 15:58:02 +0200 |
parents | 2ac41a176b5d |
children | f5a5bbb77122 |
comparison
equal
deleted
inserted
replaced
334:1d3e6108cb99 | 335:68287c7bcdb5 |
---|---|
35 if (CMAKE_SYSTEM_NAME MATCHES "Darwin") | 35 if (CMAKE_SYSTEM_NAME MATCHES "Darwin") |
36 set(CMAKE_C_FLAGS "-D_DARWIN_C_SOURCE ${CMAKE_C_FLAGS}") | 36 set(CMAKE_C_FLAGS "-D_DARWIN_C_SOURCE ${CMAKE_C_FLAGS}") |
37 endif () | 37 endif () |
38 | 38 |
39 option(MLK_WITH_NLS "Enable NLS support" On) | 39 option(MLK_WITH_NLS "Enable NLS support" On) |
40 option(MLK_WITH_ZIP "Enable zip file support" On) | |
40 option(MLK_WITH_ZSTD "Enable zstd compression" On) | 41 option(MLK_WITH_ZSTD "Enable zstd compression" On) |
41 option(MLK_WITH_TESTS "Enable unit tests" Off) | 42 option(MLK_WITH_TESTS "Enable unit tests" Off) |
42 option(MLK_WITH_EXAMPLES "Enable examples" Off) | 43 option(MLK_WITH_EXAMPLES "Enable examples" Off) |
43 | 44 |
44 include(cmake/MlkBcc.cmake) | 45 include(cmake/MlkBcc.cmake) |
65 if (NOT TARGET ZSTD::exe) | 66 if (NOT TARGET ZSTD::exe) |
66 message(FATAL_ERROR "Missing zstd command line utility") | 67 message(FATAL_ERROR "Missing zstd command line utility") |
67 endif () | 68 endif () |
68 endif () | 69 endif () |
69 | 70 |
71 if (MLK_WITH_ZIP) | |
72 find_package(Libzip REQUIRED) | |
73 endif () | |
74 | |
70 add_subdirectory(extern/libsqlite) | 75 add_subdirectory(extern/libsqlite) |
71 add_subdirectory(extern/libgreatest) | 76 add_subdirectory(extern/libgreatest) |
72 add_subdirectory(extern/librexo) | 77 add_subdirectory(extern/librexo) |
73 | 78 |
74 add_subdirectory(src/tools/bcc) | 79 add_subdirectory(src/tools/bcc) |