mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
CMake: Migrate JPEG/PNG/TIFF discovery to Package.cmake
This commit is contained in:
parent
0b68316b3f
commit
68cb953479
@ -487,34 +487,10 @@ without having to reinstall), comment out this definition and put
|
|||||||
your source directory on your PYTHONPATH.")
|
your source directory on your PYTHONPATH.")
|
||||||
|
|
||||||
|
|
||||||
# Is libjpeg installed, and where?
|
|
||||||
find_package(JPEG QUIET)
|
|
||||||
|
|
||||||
package_option(JPEG DEFAULT ON
|
|
||||||
"Enable support for loading .jpg images.")
|
|
||||||
|
|
||||||
# Some versions of libjpeg did not provide jpegint.h. Redefine this
|
|
||||||
# to false if you lack this header file.
|
|
||||||
#set(PHAVE_JPEGINT_H TRUE)
|
|
||||||
|
|
||||||
option(HAVE_VIDEO4LINUX
|
option(HAVE_VIDEO4LINUX
|
||||||
"Set this to enable webcam support on Linux." ${IS_LINUX})
|
"Set this to enable webcam support on Linux." ${IS_LINUX})
|
||||||
|
|
||||||
|
|
||||||
# Is libpng installed, and where?
|
|
||||||
find_package(PNG QUIET)
|
|
||||||
|
|
||||||
package_option(PNG DEFAULT ON
|
|
||||||
"Enable support for loading .png images.")
|
|
||||||
|
|
||||||
|
|
||||||
# Is libtiff installed, and where?
|
|
||||||
find_package(TIFF QUIET)
|
|
||||||
|
|
||||||
package_option(TIFF
|
|
||||||
"Enable support for loading .tif images.")
|
|
||||||
|
|
||||||
|
|
||||||
# Is libtar installed, and where?
|
# Is libtar installed, and where?
|
||||||
find_package(Tar QUIET)
|
find_package(Tar QUIET)
|
||||||
|
|
||||||
|
@ -190,24 +190,6 @@ endif()
|
|||||||
# Now go through all the packages and report whether we have them.
|
# Now go through all the packages and report whether we have them.
|
||||||
show_packages()
|
show_packages()
|
||||||
|
|
||||||
if(HAVE_JPEG)
|
|
||||||
message("+ libjpeg")
|
|
||||||
else()
|
|
||||||
message("- Did not find libjpeg")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(HAVE_PNG)
|
|
||||||
message("+ libpng")
|
|
||||||
else()
|
|
||||||
message("- Did not find libpng")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(HAVE_TIFF)
|
|
||||||
message("+ libtiff")
|
|
||||||
else()
|
|
||||||
message("- Did not find libtiff")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(HAVE_TAR)
|
if(HAVE_TAR)
|
||||||
message("+ libtar")
|
message("+ libtar")
|
||||||
else()
|
else()
|
||||||
|
@ -46,6 +46,25 @@ else()
|
|||||||
config_package(OPENSSL "OpenSSL")
|
config_package(OPENSSL "OpenSSL")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#
|
||||||
|
# ------------ IMAGE FORMATS ------------
|
||||||
|
#
|
||||||
|
|
||||||
|
# JPEG:
|
||||||
|
find_package(JPEG QUIET)
|
||||||
|
package_option(JPEG DEFAULT ON "Enable support for loading .jpg images.")
|
||||||
|
config_package(JPEG "libjpeg")
|
||||||
|
|
||||||
|
# PNG:
|
||||||
|
find_package(PNG QUIET)
|
||||||
|
package_option(PNG DEFAULT ON "Enable support for loading .png images.")
|
||||||
|
config_package(PNG "libpng")
|
||||||
|
|
||||||
|
# TIFF:
|
||||||
|
find_package(TIFF QUIET)
|
||||||
|
package_option(TIFF "Enable support for loading .tif images.")
|
||||||
|
config_package(TIFF "libtiff")
|
||||||
|
|
||||||
# Find and configure Miles Sound System
|
# Find and configure Miles Sound System
|
||||||
find_package(Miles QUIET)
|
find_package(Miles QUIET)
|
||||||
#config_package(RAD_MSS "Miles Sound System")
|
#config_package(RAD_MSS "Miles Sound System")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user