FindPhysFS

Finds the PhysicsFS library (PhysFS) for file I/O abstraction:

find_package(PhysFS [...])

結果變數

該模組定義了以下變數:

PhysFS_FOUND

在 3.3 版被加入.

Boolean indicating whether the PhysicsFS library was found.

快取變數

The following cache variables may also be set:

PHYSFS_INCLUDE_DIR

Directory containing the <physfs.h> and related headers needed for using the library.

PHYSFS_LIBRARY

Path to the PhysicsFS library needed to link against.

提示

This module accepts the following variables:

PHYSFSDIR

Environment variable that can be set to help locate a PhysicsFS library installed in a custom location. It should point to the installation destination that was used when configuring, building, and installing PhysicsFS library: ./configure --prefix=$PHYSFSDIR.

已棄用的變數

The following variables are provided for backward compatibility:

PHYSFS_FOUND

在 4.2 版之後被棄用: Use the PhysFS_FOUND, which has the same value.

Boolean indicating whether the PhysicsFS library was found.

範例

Finding the PhysicsFS library:

find_package(PhysFS)