CMakeLists.txt
branch0.9.19
changeset 9096 b3041025c271
parent 9091 bafadc6b4516
child 9098 cba0d2199123
child 9104 5cf87143b188
equal deleted inserted replaced
9095:17ee5231f31f 9096:b3041025c271
    22 option(NOSERVER "Disable gameServer build (off)]" OFF)
    22 option(NOSERVER "Disable gameServer build (off)]" OFF)
    23 option(NOPNG "Disable screenshoot compression (off)" OFF)
    23 option(NOPNG "Disable screenshoot compression (off)" OFF)
    24 option(NOVIDEOREC "Disable video recording (off)" OFF)
    24 option(NOVIDEOREC "Disable video recording (off)" OFF)
    25 
    25 
    26 #set this to ON when 2.1.0 becomes more widespread (and only for linux)
    26 #set this to ON when 2.1.0 becomes more widespread (and only for linux)
    27 option(SYSTEM_PHYSFS "Use system physfs (off)" OFF)
    27 option(PHYSFS_SYSTEM "Use system physfs (off)" OFF)
    28 
    28 
    29 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF)
    29 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF)
    30 option(ANDROID "Enable Android build (off)" OFF)
    30 option(ANDROID "Enable Android build (off)" OFF)
    31 
    31 
    32 if(UNIX AND NOT APPLE)
    32 if(UNIX AND NOT APPLE)
   313     list(APPEND pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline")
   313     list(APPEND pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline")
   314 endif()
   314 endif()
   315 
   315 
   316 
   316 
   317 #physfs discovery
   317 #physfs discovery
   318 if (${SYSTEM_PHYSFS})
   318 if (${PHYSFS_SYSTEM})
   319     if (NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR)
   319     if (NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR)
   320         find_package(PhysFS)
   320         find_package(PhysFS)
   321     endif()
   321     endif()
   322 
   322 
   323     find_file(physfs_h physfs.h ${PHYSFS_INCLUDE_DIR})
   323     find_file(physfs_h physfs.h ${PHYSFS_INCLUDE_DIR})