CMake: Migrate detection of libsquish

This commit is contained in:
Sam Edwards 2018-02-18 21:41:33 -07:00
parent 71836f09e3
commit a9717cf3ab
3 changed files with 11 additions and 13 deletions

View File

@ -475,13 +475,6 @@ option(HAVE_VIDEO4LINUX
"Set this to enable webcam support on Linux." ${IS_LINUX})
# Is libsquish installed, and where?
find_package(Squish QUIET)
package_option(SQUISH
"Enables support for automatic compression of DXT textures.")
# Is Cg installed, and where?
find_package(Cg QUIET)
package_option(CG

View File

@ -189,12 +189,6 @@ endif()
# Now go through all the packages and report whether we have them.
show_packages()
if(HAVE_SQUISH)
message("+ squish")
else()
message("- Did not find squish")
endif()
if(HAVE_CG)
message("+ Nvidia Cg High Level Shading Language")
else()

View File

@ -85,6 +85,17 @@ package_option(FFTW
config_package(FFTW "FFTW")
#
# ------------ libsquish ------------
#
find_package(Squish QUIET)
package_option(SQUISH
"Enables support for automatic compression of DXT textures.")
config_package(SQUISH "libsquish")
# Find and configure Miles Sound System
find_package(Miles QUIET)
#config_package(RAD_MSS "Miles Sound System")