mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
CMake: Update FindLibSquish.cmake, support looking in thirdparty dir
This commit is contained in:
parent
59f422c056
commit
e716dba8d4
@ -14,6 +14,26 @@
|
|||||||
# LIBSQUISH_DEBUG_LIBRARY - the filepath of the libsquish debug library
|
# LIBSQUISH_DEBUG_LIBRARY - the filepath of the libsquish debug library
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if(LibSquish_ROOT)
|
||||||
|
# Search exclusively under the root
|
||||||
|
find_path(LIBSQUISH_INCLUDE_DIR
|
||||||
|
NAMES "squish.h"
|
||||||
|
PATHS ${LibSquish_ROOT}
|
||||||
|
PATH_SUFFIXES "include"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_library(LIBSQUISH_RELEASE_LIBRARY
|
||||||
|
NAMES "squish" "libsquish"
|
||||||
|
PATHS ${LibSquish_ROOT}
|
||||||
|
PATH_SUFFIXES "lib"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_library(LIBSQUISH_DEBUG_LIBRARY
|
||||||
|
NAMES "squishd" "libsquishd"
|
||||||
|
PATHS ${LibSquish_ROOT}
|
||||||
|
PATH_SUFFIXES "lib"
|
||||||
|
)
|
||||||
|
else()
|
||||||
# Find the libsquish include files
|
# Find the libsquish include files
|
||||||
find_path(LIBSQUISH_INCLUDE_DIR
|
find_path(LIBSQUISH_INCLUDE_DIR
|
||||||
NAMES "squish.h"
|
NAMES "squish.h"
|
||||||
@ -49,7 +69,7 @@ find_library(LIBSQUISH_DEBUG_LIBRARY
|
|||||||
"/opt/csw"
|
"/opt/csw"
|
||||||
PATH_SUFFIXES "lib" "lib32" "lib64"
|
PATH_SUFFIXES "lib" "lib32" "lib64"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
mark_as_advanced(LIBSQUISH_INCLUDE_DIR)
|
mark_as_advanced(LIBSQUISH_INCLUDE_DIR)
|
||||||
mark_as_advanced(LIBSQUISH_RELEASE_LIBRARY)
|
mark_as_advanced(LIBSQUISH_RELEASE_LIBRARY)
|
||||||
|
@ -397,7 +397,7 @@ package_option(OpenEXR "Enable support for loading .exr images.")
|
|||||||
package_status(OpenEXR "OpenEXR")
|
package_status(OpenEXR "OpenEXR")
|
||||||
|
|
||||||
# libsquish
|
# libsquish
|
||||||
find_package(LibSquish QUIET)
|
find_package(LibSquish QUIET MODULE)
|
||||||
|
|
||||||
package_option(SQUISH
|
package_option(SQUISH
|
||||||
"Enables support for automatic compression of DXT textures."
|
"Enables support for automatic compression of DXT textures."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user