summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73fad62..458ab06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,7 @@ OPTION (ENABLE_DEBUG "Build debug features" ON)
OPTION (DEVELOPER "Modify stuff to please tuxanci devs" OFF)
MARK_AS_ADVANCED ( DEVELOPER )
OPTION (WITH_NLS "Build the translations" ON)
+OPTION (WITH_PHYSFS "Use physfs engine for unpacking (instead of libzip)" OFF)
OPTION (Apple "Build some apple quirks. USE ONLY ON MAC!" OFF)
MARK_AS_ADVANCED ( Apple )
OPTION (WITH_OPENGL "Use opengl as renderer instead of SW" ON)
@@ -170,7 +171,11 @@ ENDIF ( Apple )
###############################################################################
MESSAGE ( STATUS "<Loading PkgConfig>" )
FIND_PACKAGE ( PkgConfig REQUIRED )
-pkg_check_modules(ZIP REQUIRED libzip)
+IF ( WITH_PHYSFS )
+ FIND_PACKAGE ( PhysFS REQURED )
+ELSE ( WITH PHYSFS )
+ pkg_check_modules(ZIP REQUIRED libzip)
+ENDIF ( WITH PHYSFS )
INCLUDE_DIRECTORIES( ${ZIP_INCLUDE_DIRS} )
IF ( NOT BUILD_SERVER )
# cairo not needed until we start actually using the svg files