1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-26 02:03:48 +00:00
Aquaria/ExternalLibs/FTGL.cmake

13 lines
537 B
CMake
Raw Normal View History

OPTION(AQUARIA_INTERNAL_FTGL "Always use included FTGL library" TRUE)
if(AQUARIA_INTERNAL_FTGL)
message(STATUS "Using internal copy of FTGL")
SET(FTGLDIR ${CMAKE_CURRENT_SOURCE_DIR}/FTGL)
set(FTGL_INCLUDE_DIRS "${FTGLDIR}/include;${FREETYPE_INCLUDE_DIRS}" CACHE INTERNAL "")
include(freetype2.cmake) # Nothing else uses freetype2 directly
2024-07-16 00:57:09 +00:00
INCLUDE_DIRECTORIES("${FREETYPE_INCLUDE_DIRS}")
INCLUDE_DIRECTORIES("${EXTLIBDIR}") # For <GL/gl.h>
add_subdirectory(FTGL)
else()
find_package(FTGL REQUIRED)
endif()