CMakeLists.txt 16 KB

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