1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 05:13:19 +00:00

Merge pull request #20 from jbeich/system-ftgl

Allow using system FTGL
This commit is contained in:
False.Genesis 2015-09-30 23:23:26 +02:00
commit aa7afa1b00
3 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,20 @@
# - 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)