2019-09-13 01:07:22 +08:00
set ( VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled )
include ( ${ CURRENT_INSTALLED_DIR } /share/qt5/qt_port_functions.cmake )
2019-09-21 05:06:43 +08:00
list ( APPEND CORE_OPTIONS
- s y s t e m - t i f f
- s y s t e m - w e b p
2020-01-07 04:36:51 +08:00
- j a s p e r
- n o - m n g # must be explicitly disabled to not automatically pick up mng
2019-09-21 05:06:43 +08:00
- v e r b o s e )
2020-01-14 07:43:36 +08:00
2019-09-21 05:06:43 +08:00
find_library ( TIFF_RELEASE NAMES tiff PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH ) # Depends on lzma
find_library ( TIFF_DEBUG NAMES tiffd PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
2020-01-07 04:36:51 +08:00
find_library ( JASPER_RELEASE NAMES jasper PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH )
find_library ( JASPER_DEBUG NAMES jasperd jasper libjasperd libjasper PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
find_library ( FREEGLUT_RELEASE NAMES freeglut glut PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH )
find_library ( FREEGLUT_DEBUG NAMES freeglutd freeglut glutd glut PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
2019-09-21 05:06:43 +08:00
find_library ( WEBP_RELEASE NAMES webp PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH )
find_library ( WEBP_DEBUG NAMES webpd webp PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
find_library ( WEBPDEMUX_RELEASE NAMES webpdemux PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH )
find_library ( WEBPDEMUX_DEBUG NAMES webpdemuxd webpdemux PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
# Depends on opengl in default build but might depend on giflib, libjpeg-turbo, zlib, libpng, tiff, freeglut (!osx), sdl1 (windows)
# which would require extra libraries to be linked e.g. giflib freeglut sdl1 other ones are already linked
#Dependent libraries
find_library ( LZMA_RELEASE lzma PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH )
find_library ( LZMA_DEBUG lzmad lzma PATHS "${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH )
set ( OPT_REL "TIFF_LIBS=${TIFF_RELEASE} ${LZMA_RELEASE}"
2020-01-07 04:36:51 +08:00
" W E B P _ L I B S = $ { W E B P _ R E L E A S E } $ { W E B P D E M U X _ R E L E A S E } "
" J A S P E R _ L I B S = $ { J A S P E R _ R E L E A S E } $ { F R E E G L U T _ R E L E A S E } " ) # This will still fail if LIBWEBP is installed with all available features due to the missing additional dependencies
2019-09-21 05:06:43 +08:00
set ( OPT_DBG "TIFF_LIBS=${TIFF_DEBUG} ${LZMA_DEBUG}"
2020-01-07 04:36:51 +08:00
" W E B P _ L I B S = $ { W E B P _ D E B U G } $ { W E B P D E M U X _ D E B U G } "
" J A S P E R _ L I B S = $ { J A S P E R _ D E B U G } $ { F R E E G L U T _ D E B U G } " )
2019-09-21 05:06:43 +08:00
qt_submodule_installation ( BUILD_OPTIONS ${ CORE_OPTIONS } BUILD_OPTIONS_RELEASE ${ OPT_REL } BUILD_OPTIONS_DEBUG ${ OPT_DBG } )