mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-01 15:35:47 +00:00
20 lines
714 B
CMake
20 lines
714 B
CMake
# - Try to find FTGL
|
|
# Once done this will define
|
|
# FTGL_FOUND - System has FTGL
|
|
# FTGL_INCLUDE_DIRS - The FTGL include directories
|
|
# FTGL_LIBRARIES - The libraries needed to use FTGL
|
|
# FTGL_DEFINITIONS - Compiler switches required for using FTGL
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PC_FTGL QUIET ftgl)
|
|
set(FTGL_INCLUDE_DIRS ${PC_FTGL_INCLUDE_DIRS})
|
|
set(FTGL_DEFINITIONS ${PC_FTGL_CFLAGS_OTHER})
|
|
|
|
find_library(FTGL_LIBRARY ftgl
|
|
HINTS ${PC_FTGL_LIBDIR} ${PC_FTGL_LIBRARY_DIRS})
|
|
set(FTGL_LIBRARIES ${FTGL_LIBRARY})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(FTGL DEFAULT_MSG FTGL_LIBRARIES FTGL_INCLUDE_DIRS)
|
|
|
|
mark_as_advanced(FTGL_LIBRARIES FTGL_INCLUDE_DIRS)
|