2016-10-30 18:24:19 +01:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
#[=======================================================================[.rst:
|
|
|
|
FindPhysFS
|
|
|
|
----------
|
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
Locate PhysFS library This module defines:
|
2019-11-11 23:01:05 +01:00
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
``PHYSFS_LIBRARY``
|
|
|
|
the name of the library to link against
|
|
|
|
``PHYSFS_FOUND``
|
|
|
|
if false, do not try to link to PHYSFS
|
|
|
|
``PHYSFS_INCLUDE_DIR``
|
|
|
|
where to find physfs.h
|
2019-11-11 23:01:05 +01:00
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
``$PHYSFSDIR`` is an environment variable that would correspond to::
|
2019-11-11 23:01:05 +01:00
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
./configure --prefix=$PHYSFSDIR
|
2019-11-11 23:01:05 +01:00
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
used in building PHYSFS.
|
2019-11-11 23:01:05 +01:00
|
|
|
#]=======================================================================]
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
find_path(PHYSFS_INCLUDE_DIR physfs.h
|
2008-10-12 21:55:53 +03:00
|
|
|
HINTS
|
2013-03-16 19:13:01 +02:00
|
|
|
ENV PHYSFSDIR
|
2008-10-12 21:55:53 +03:00
|
|
|
PATH_SUFFIXES include/physfs include
|
2008-10-12 18:41:06 +02:00
|
|
|
PATHS
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/opt
|
|
|
|
)
|
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
find_library(PHYSFS_LIBRARY
|
2008-10-12 18:41:06 +02:00
|
|
|
NAMES physfs
|
2008-10-12 21:55:53 +03:00
|
|
|
HINTS
|
2013-03-16 19:13:01 +02:00
|
|
|
ENV PHYSFSDIR
|
|
|
|
PATH_SUFFIXES lib
|
2008-10-12 18:41:06 +02:00
|
|
|
PATHS
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/opt
|
|
|
|
)
|
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2010-06-23 01:18:35 +03:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PhysFS DEFAULT_MSG PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|