Skip to content

Latest commit

 

History

History
344 lines (292 loc) · 12.2 KB

CMakeLists.txt

File metadata and controls

344 lines (292 loc) · 12.2 KB
 
Mar 10, 2007
Mar 10, 2007
1
2
# PhysicsFS; a portable, flexible file i/o abstraction.
#
Mar 11, 2007
Mar 11, 2007
3
# Please see the file LICENSE.txt in the source's root directory.
Mar 10, 2007
Mar 10, 2007
4
Jul 12, 2017
Jul 12, 2017
5
6
7
8
9
10
11
# The CMake project file is meant to get this compiling on all sorts of
# platforms quickly, and serve as the way Unix platforms and Linux distros
# package up official builds, but you don't _need_ to use this; we have
# built PhysicsFS to (hopefully) be able to drop into your project and
# compile, using preprocessor checks for platform-specific bits instead of
# testing in here.
Sep 30, 2022
Sep 30, 2022
12
set(PHYSFS_VERSION 3.3.0)
Mar 23, 2009
Mar 23, 2009
13
Apr 27, 2023
Apr 27, 2023
14
cmake_minimum_required(VERSION 3.5)
Jun 15, 2022
Jun 15, 2022
15
16
17
project(PhysicsFS VERSION ${PHYSFS_VERSION} LANGUAGES C )
Jul 11, 2021
Jul 11, 2021
18
19
include(GNUInstallDirs)
Mar 23, 2009
Mar 23, 2009
20
# Increment this if/when we break backwards compatibility.
Oct 23, 2012
Oct 23, 2012
21
set(PHYSFS_SOVERSION 1)
Mar 10, 2007
Mar 10, 2007
22
Jun 15, 2022
Jun 15, 2022
23
24
set(PHYSFS_M_SRCS)
set(PHYSFS_CPP_SRCS)
Mar 10, 2007
Mar 10, 2007
25
Apr 27, 2023
Apr 27, 2023
26
27
28
if(WIN32)
list(APPEND OPTIONAL_LIBRARY_LIBS advapi32 shell32)
endif()
Mar 10, 2007
Mar 10, 2007
29
Jul 12, 2017
Jul 12, 2017
30
if(APPLE)
Aug 8, 2017
Aug 8, 2017
31
set(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-framework IOKit -framework Foundation")
Jun 15, 2022
Jun 15, 2022
32
list(APPEND PHYSFS_M_SRCS src/physfs_platform_apple.m)
Oct 23, 2012
Oct 23, 2012
33
endif()
Mar 10, 2007
Mar 10, 2007
34
Jun 15, 2022
Jun 15, 2022
35
36
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall)
Oct 23, 2012
Oct 23, 2012
37
endif()
Mar 10, 2007
Mar 10, 2007
38
Oct 23, 2012
Oct 23, 2012
39
40
41
42
if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
add_definitions(-erroff=E_EMPTY_TRANSLATION_UNIT)
add_definitions(-xldscope=hidden)
endif()
Apr 13, 2009
Apr 13, 2009
43
Jul 12, 2017
Jul 12, 2017
44
if(HAIKU)
Mar 11, 2007
Mar 11, 2007
45
# We add this explicitly, since we don't want CMake to think this
Jul 12, 2017
Jul 12, 2017
46
# is a C++ project unless we're on Haiku.
Jun 15, 2022
Jun 15, 2022
47
list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_haiku.cpp)
Oct 23, 2012
Oct 23, 2012
48
49
find_library(BE_LIBRARY be)
find_library(ROOT_LIBRARY root)
Jun 15, 2022
Jun 15, 2022
50
list(APPEND OPTIONAL_LIBRARY_LIBS ${BE_LIBRARY} ${ROOT_LIBRARY})
Oct 23, 2012
Oct 23, 2012
51
endif()
Mar 11, 2007
Mar 11, 2007
52
Jul 24, 2017
Jul 24, 2017
53
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
Jul 25, 2017
Jul 25, 2017
54
55
56
57
set(WINRT TRUE)
endif()
if(WINRT)
Jun 15, 2022
Jun 15, 2022
58
list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
Jul 24, 2017
Jul 24, 2017
59
60
endif()
Jun 15, 2022
Jun 15, 2022
61
if(UNIX AND NOT WIN32 AND NOT APPLE) # (MingW and such might be UNIX _and_ WINDOWS!)
Jul 12, 2017
Jul 12, 2017
62
63
find_library(PTHREAD_LIBRARY pthread)
if(PTHREAD_LIBRARY)
Apr 27, 2023
Apr 27, 2023
64
list(APPEND OPTIONAL_LIBRARY_LIBS ${PTHREAD_LIBRARY})
Jul 12, 2017
Jul 12, 2017
65
66
67
endif()
endif()
Jun 15, 2022
Jun 15, 2022
68
69
70
71
if(PHYSFS_CPP_SRCS)
enable_language(CXX)
endif()
Mar 11, 2007
Mar 11, 2007
72
73
74
75
# Almost everything is "compiled" here, but things that don't apply to the
# build are #ifdef'd out. This is to make it easy to embed PhysicsFS into
# another project or bring up a new build system: just compile all the source
# code and #define the things you want.
Oct 23, 2012
Oct 23, 2012
76
set(PHYSFS_SRCS
Mar 27, 2009
Mar 27, 2009
77
78
79
src/physfs.c
src/physfs_byteorder.c
src/physfs_unicode.c
Jul 22, 2017
Jul 22, 2017
80
81
82
src/physfs_platform_posix.c
src/physfs_platform_unix.c
src/physfs_platform_windows.c
Feb 6, 2024
Feb 6, 2024
83
src/physfs_platform_ogc.c
Jul 22, 2017
Jul 22, 2017
84
src/physfs_platform_os2.c
Aug 17, 2017
Aug 17, 2017
85
src/physfs_platform_qnx.c
Jun 12, 2020
Jun 12, 2020
86
src/physfs_platform_android.c
Apr 4, 2024
Apr 4, 2024
87
src/physfs_platform_playdate.c
Jul 22, 2017
Jul 22, 2017
88
89
90
91
92
93
94
95
src/physfs_archiver_dir.c
src/physfs_archiver_unpacked.c
src/physfs_archiver_grp.c
src/physfs_archiver_hog.c
src/physfs_archiver_7z.c
src/physfs_archiver_mvl.c
src/physfs_archiver_qpak.c
src/physfs_archiver_wad.c
Jun 25, 2023
Jun 25, 2023
96
src/physfs_archiver_csm.c
Jul 22, 2017
Jul 22, 2017
97
98
99
100
src/physfs_archiver_zip.c
src/physfs_archiver_slb.c
src/physfs_archiver_iso9660.c
src/physfs_archiver_vdf.c
Jul 24, 2017
Jul 24, 2017
101
${PHYSFS_CPP_SRCS}
Aug 8, 2017
Aug 8, 2017
102
${PHYSFS_M_SRCS}
Mar 10, 2007
Mar 10, 2007
103
104
105
106
)
# Archivers ...
Jul 11, 2017
Jul 11, 2017
107
108
# These are (mostly) on by default now, so these options are only useful for
# disabling them.
Mar 10, 2007
Mar 10, 2007
109
Oct 23, 2012
Oct 23, 2012
110
option(PHYSFS_ARCHIVE_ZIP "Enable ZIP support" TRUE)
Jul 11, 2017
Jul 11, 2017
111
112
if(NOT PHYSFS_ARCHIVE_ZIP)
add_definitions(-DPHYSFS_SUPPORTS_ZIP=0)
Oct 23, 2012
Oct 23, 2012
113
endif()
Mar 10, 2007
Mar 10, 2007
114
Oct 23, 2012
Oct 23, 2012
115
option(PHYSFS_ARCHIVE_7Z "Enable 7zip support" TRUE)
Jul 17, 2017
Jul 17, 2017
116
if(NOT PHYSFS_ARCHIVE_7Z)
Jul 11, 2017
Jul 11, 2017
117
add_definitions(-DPHYSFS_SUPPORTS_7Z=0)
Oct 23, 2012
Oct 23, 2012
118
119
120
endif()
option(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE)
Jul 11, 2017
Jul 11, 2017
121
122
if(NOT PHYSFS_ARCHIVE_GRP)
add_definitions(-DPHYSFS_SUPPORTS_GRP=0)
Oct 23, 2012
Oct 23, 2012
123
124
125
endif()
option(PHYSFS_ARCHIVE_WAD "Enable Doom WAD support" TRUE)
Jul 11, 2017
Jul 11, 2017
126
127
if(NOT PHYSFS_ARCHIVE_WAD)
add_definitions(-DPHYSFS_SUPPORTS_WAD=0)
Oct 23, 2012
Oct 23, 2012
128
129
endif()
Jun 25, 2023
Jun 25, 2023
130
131
132
133
134
option(PHYSFS_ARCHIVE_CSM "Enable Chasm: The Rift CSM.BIN support" TRUE)
if(NOT PHYSFS_ARCHIVE_CSM)
add_definitions(-DPHYSFS_SUPPORTS_CSM=0)
endif()
Oct 23, 2012
Oct 23, 2012
135
option(PHYSFS_ARCHIVE_HOG "Enable Descent I/II HOG support" TRUE)
Jul 11, 2017
Jul 11, 2017
136
137
if(NOT PHYSFS_ARCHIVE_HOG)
add_definitions(-DPHYSFS_SUPPORTS_HOG=0)
Oct 23, 2012
Oct 23, 2012
138
139
140
endif()
option(PHYSFS_ARCHIVE_MVL "Enable Descent I/II MVL support" TRUE)
Jul 11, 2017
Jul 11, 2017
141
142
if(NOT PHYSFS_ARCHIVE_MVL)
add_definitions(-DPHYSFS_SUPPORTS_MVL=0)
Oct 23, 2012
Oct 23, 2012
143
144
145
endif()
option(PHYSFS_ARCHIVE_QPAK "Enable Quake I/II QPAK support" TRUE)
Jul 11, 2017
Jul 11, 2017
146
147
if(NOT PHYSFS_ARCHIVE_QPAK)
add_definitions(-DPHYSFS_SUPPORTS_QPAK=0)
Oct 23, 2012
Oct 23, 2012
148
149
endif()
Nov 12, 2012
Nov 12, 2012
150
option(PHYSFS_ARCHIVE_SLB "Enable I-War / Independence War SLB support" TRUE)
Jul 11, 2017
Jul 11, 2017
151
152
if(NOT PHYSFS_ARCHIVE_SLB)
add_definitions(-DPHYSFS_SUPPORTS_SLB=0)
Nov 12, 2012
Nov 12, 2012
153
154
endif()
Oct 23, 2012
Oct 23, 2012
155
option(PHYSFS_ARCHIVE_ISO9660 "Enable ISO9660 support" TRUE)
Jul 11, 2017
Jul 11, 2017
156
157
if(NOT PHYSFS_ARCHIVE_ISO9660)
add_definitions(-DPHYSFS_SUPPORTS_ISO9660=0)
Oct 23, 2012
Oct 23, 2012
158
159
endif()
Jun 20, 2017
Jun 20, 2017
160
option(PHYSFS_ARCHIVE_VDF "Enable Gothic I/II VDF archive support" TRUE)
Jul 11, 2017
Jul 11, 2017
161
162
if(NOT PHYSFS_ARCHIVE_VDF)
add_definitions(-DPHYSFS_SUPPORTS_VDF=0)
Jun 20, 2017
Jun 20, 2017
163
164
endif()
Oct 23, 2012
Oct 23, 2012
165
166
167
168
option(PHYSFS_BUILD_STATIC "Build static library" TRUE)
if(PHYSFS_BUILD_STATIC)
add_library(physfs-static STATIC ${PHYSFS_SRCS})
Jun 15, 2022
Jun 15, 2022
169
170
add_library(PhysFS::PhysFS-static ALIAS physfs-static)
set_target_properties(physfs-static PROPERTIES EXPORT_NAME PhysFS-static)
Jul 11, 2017
Jul 11, 2017
171
172
173
174
# Don't rename this on Windows, since DLLs will also produce an import
# library named "physfs.lib" which would conflict; Unix tend to like the
# same library name with a different extension for static libs, but
# Windows can just have a separate name.
Jul 17, 2017
Jul 17, 2017
175
if(NOT MSVC)
Jul 11, 2017
Jul 11, 2017
176
177
set_target_properties(physfs-static PROPERTIES OUTPUT_NAME "physfs")
endif()
Jul 25, 2017
Jul 25, 2017
178
if(WINRT)
Jul 26, 2017
Jul 26, 2017
179
# Ignore LNK4264 warnings; we don't author any WinRT components, just consume them, so we're okay in a static library.
Jul 25, 2017
Jul 25, 2017
180
set_target_properties(physfs-static PROPERTIES VS_WINRT_COMPONENT True)
Jul 26, 2017
Jul 26, 2017
181
set_target_properties(physfs-static PROPERTIES STATIC_LIBRARY_FLAGS "/ignore:4264")
Jul 25, 2017
Jul 25, 2017
182
endif()
Apr 16, 2022
Apr 16, 2022
183
184
185
186
if(WIN32 OR WINRT OR OS2)
# no dll exports from the static library
target_compile_definitions(physfs-static PRIVATE "PHYSFS_STATIC")
endif()
Jun 15, 2022
Jun 15, 2022
187
188
target_include_directories(physfs-static PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>")
target_link_libraries(physfs-static PRIVATE ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
Apr 27, 2023
Apr 27, 2023
189
set(PHYSFS_LIB_TARGET PhysFS::PhysFS-static)
Jun 15, 2022
Jun 15, 2022
190
list(APPEND PHYSFS_INSTALL_TARGETS "physfs-static")
Oct 23, 2012
Oct 23, 2012
191
192
193
194
195
endif()
option(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
if(PHYSFS_BUILD_SHARED)
add_library(physfs SHARED ${PHYSFS_SRCS})
Jun 15, 2022
Jun 15, 2022
196
add_library(PhysFS::PhysFS ALIAS physfs)
Aug 8, 2017
Aug 8, 2017
197
set_target_properties(physfs PROPERTIES MACOSX_RPATH 1)
Oct 23, 2012
Oct 23, 2012
198
199
set_target_properties(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
set_target_properties(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
Jun 15, 2022
Jun 15, 2022
200
set_target_properties(physfs PROPERTIES EXPORT_NAME PhysFS)
Jul 25, 2017
Jul 25, 2017
201
if(WINRT)
Apr 27, 2023
Apr 27, 2023
202
set_target_properties(physfs PROPERTIES VS_WINRT_COMPONENT TRUE)
Jul 25, 2017
Jul 25, 2017
203
endif()
Apr 16, 2022
Apr 16, 2022
204
205
206
if(OS2) # OS/2 does not support a DLL name longer than 8 characters.
set_target_properties(physfs PROPERTIES OUTPUT_NAME "physfs")
endif()
Jun 15, 2022
Jun 15, 2022
207
208
target_include_directories(physfs PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>")
target_link_libraries(physfs PRIVATE ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
Apr 27, 2023
Apr 27, 2023
209
set(PHYSFS_LIB_TARGET PhysFS::PhysFS)
Jun 15, 2022
Jun 15, 2022
210
list(APPEND PHYSFS_INSTALL_TARGETS "physfs")
Oct 23, 2012
Oct 23, 2012
211
212
213
214
215
endif()
if(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
message(FATAL "Both shared and static libraries are disabled!")
endif()
Mar 11, 2007
Mar 11, 2007
216
Oct 23, 2012
Oct 23, 2012
217
218
219
option(PHYSFS_BUILD_TEST "Build stdio test program." TRUE)
mark_as_advanced(PHYSFS_BUILD_TEST)
if(PHYSFS_BUILD_TEST)
Apr 27, 2023
Apr 27, 2023
220
221
222
add_executable(test_physfs test/test_physfs.c)
target_link_libraries(test_physfs PRIVATE ${PHYSFS_LIB_TARGET} ${OTHER_LDFLAGS})
Oct 23, 2012
Oct 23, 2012
223
224
find_path(READLINE_H readline/readline.h)
find_path(HISTORY_H readline/history.h)
Apr 27, 2023
Apr 27, 2023
225
226
227
228
229
230
231
find_library(READLINE_LIBRARY readline)
find_package(Curses)
if(READLINE_H AND HISTORY_H AND READLINE_LIBRARY AND CURSES_FOUND)
set(HAVE_SYSTEM_READLINE TRUE)
target_link_libraries(test_physfs PRIVATE ${READLINE_LIBRARY} ${CURSES_LIBRARIES})
target_include_directories(test_physfs SYSTEM PRIVATE ${READLINE_H} ${HISTORY_H})
target_compile_definitions(test_physfs PRIVATE PHYSFS_HAVE_READLINE=1)
Oct 23, 2012
Oct 23, 2012
232
endif()
Jun 15, 2022
Jun 15, 2022
233
list(APPEND PHYSFS_INSTALL_TARGETS test_physfs)
Oct 23, 2012
Oct 23, 2012
234
endif()
Mar 10, 2007
Mar 10, 2007
235
Apr 16, 2022
Apr 16, 2022
236
237
238
option(PHYSFS_DISABLE_INSTALL "Disable installing PhysFS" OFF)
if(NOT PHYSFS_DISABLE_INSTALL)
Apr 16, 2022
Apr 16, 2022
239
240
241
242
243
244
245
246
247
248
install(TARGETS ${PHYSFS_INSTALL_TARGETS} EXPORT PhysFSExport
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES src/physfs.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(EXPORT PhysFSExport
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/PhysFS"
FILE PhysFSConfig.cmake
Jun 15, 2022
Jun 15, 2022
249
NAMESPACE PhysFS::
Apr 16, 2022
Apr 16, 2022
250
)
Apr 19, 2019
Apr 19, 2019
251
Apr 16, 2022
Apr 16, 2022
252
253
254
255
256
257
258
259
260
261
262
263
264
if(NOT MSVC)
configure_file(
"extras/physfs.pc.in"
"extras/physfs.pc"
@ONLY
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
)
endif()
endif()
Apr 19, 2019
Apr 19, 2019
265
Sep 3, 2021
Sep 3, 2021
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
option(PHYSFS_BUILD_DOCS "Build doxygen based documentation" TRUE)
if(PHYSFS_BUILD_DOCS)
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(PHYSFS_OUTPUT_DOXYFILE "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile"
"${PHYSFS_OUTPUT_DOXYFILE}"
COPYONLY
)
file(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "\n\n# Below auto-generated by cmake...\n\n")
file(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "PROJECT_NUMBER = \"${PHYSFS_VERSION}\"\n")
file(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "OUTPUT_DIRECTORY = \"${CMAKE_CURRENT_BINARY_DIR}/docs\"\n")
file(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "\n# End auto-generated section.\n\n")
set(PHYSFS_TARGETNAME_DOCS "docs" CACHE STRING "Name of 'docs' build target")
add_custom_target(
${PHYSFS_TARGETNAME_DOCS}
${DOXYGEN_EXECUTABLE} "${PHYSFS_OUTPUT_DOXYFILE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Building documentation in 'docs' directory..."
)
Feb 22, 2011
Feb 22, 2011
289
Sep 3, 2021
Sep 3, 2021
290
291
292
else()
message(STATUS "Doxygen not found. You won't be able to build documentation.")
endif()
Oct 23, 2012
Oct 23, 2012
293
endif()
Mar 10, 2007
Mar 10, 2007
294
Oct 23, 2012
Oct 23, 2012
295
if(UNIX)
Jul 1, 2021
Jul 1, 2021
296
set(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
Feb 10, 2019
Feb 10, 2019
297
298
set(PHYSFS_TARGETNAME_DIST "dist" CACHE STRING "Name of 'dist' build target")
Oct 23, 2012
Oct 23, 2012
299
add_custom_target(
Feb 10, 2019
Feb 10, 2019
300
${PHYSFS_TARGETNAME_DIST}
Jul 1, 2021
Jul 1, 2021
301
git archive --prefix="physfs-${PHYSFS_VERSION}/" --output="${PHYSFS_TARBALL}" HEAD
Feb 3, 2010
Feb 3, 2010
302
303
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
Feb 3, 2010
Feb 3, 2010
304
)
Feb 10, 2019
Feb 10, 2019
305
306
set(PHYSFS_TARGETNAME_UNINSTALL "uninstall" CACHE STRING "Name of 'uninstall' build target")
Oct 23, 2012
Oct 23, 2012
307
add_custom_target(
Feb 10, 2019
Feb 10, 2019
308
${PHYSFS_TARGETNAME_UNINSTALL}
Feb 3, 2010
Feb 3, 2010
309
310
311
312
"${CMAKE_CURRENT_SOURCE_DIR}/extras/uninstall.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Uninstall the project..."
)
Oct 23, 2012
Oct 23, 2012
313
314
endif()
Apr 16, 2022
Apr 16, 2022
315
Oct 23, 2012
Oct 23, 2012
316
317
318
319
320
321
322
323
324
325
326
327
328
macro(message_bool_option _NAME _VALUE)
if(${_VALUE})
message(STATUS " ${_NAME}: enabled")
else()
message(STATUS " ${_NAME}: disabled")
endif()
endmacro()
message(STATUS "PhysicsFS will build with the following options:")
message_bool_option("ZIP support" PHYSFS_ARCHIVE_ZIP)
message_bool_option("7zip support" PHYSFS_ARCHIVE_7Z)
message_bool_option("GRP support" PHYSFS_ARCHIVE_GRP)
message_bool_option("WAD support" PHYSFS_ARCHIVE_WAD)
Jun 25, 2023
Jun 25, 2023
329
message_bool_option("CSM support" PHYSFS_ARCHIVE_CSM)
Oct 23, 2012
Oct 23, 2012
330
331
332
message_bool_option("HOG support" PHYSFS_ARCHIVE_HOG)
message_bool_option("MVL support" PHYSFS_ARCHIVE_MVL)
message_bool_option("QPAK support" PHYSFS_ARCHIVE_QPAK)
Nov 12, 2012
Nov 12, 2012
333
message_bool_option("SLB support" PHYSFS_ARCHIVE_SLB)
Jul 11, 2017
Jul 11, 2017
334
335
message_bool_option("VDF support" PHYSFS_ARCHIVE_VDF)
message_bool_option("ISO9660 support" PHYSFS_ARCHIVE_ISO9660)
Oct 23, 2012
Oct 23, 2012
336
337
338
message_bool_option("Build static library" PHYSFS_BUILD_STATIC)
message_bool_option("Build shared library" PHYSFS_BUILD_SHARED)
message_bool_option("Build stdio test program" PHYSFS_BUILD_TEST)
Sep 3, 2021
Sep 3, 2021
339
message_bool_option("Build Doxygen documentation" PHYSFS_BUILD_DOCS)
Oct 23, 2012
Oct 23, 2012
340
341
342
if(PHYSFS_BUILD_TEST)
message_bool_option(" Use readline in test program" HAVE_SYSTEM_READLINE)
endif()
Mar 10, 2007
Mar 10, 2007
343
344
# end of CMakeLists.txt ...