💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

7 years ago
  1. # - Try to find FREETYPE2
  2. # This module defines
  3. # FREETYPE2_FOUND - System has FREETYPE2
  4. # FREETYPE2_INCLUDE_DIRS - The FREETYPE2 include directories
  5. # FREETYPE2_LIBRARIES - Link to these to use FREETYPE2
  6. # Copyright (C) 2011-2014 Christopher J. Howard
  7. #
  8. # This file is part of Open Graphics Framework (OGF).
  9. #
  10. # OGF is free software: you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation, either version 3 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # OGF is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with OGF. If not, see <http://www.gnu.org/licenses/>.
  22. find_path(FREETYPE2_INCLUDE_DIR ft2build.h PATH_SUFFIXES include/freetype2 include)
  23. find_library(FREETYPE2_LIBRARY NAMES freetype)
  24. set(FREETYPE2_LIBRARIES ${FREETYPE2_LIBRARY})
  25. set(FREETYPE2_INCLUDE_DIRS ${FREETYPE2_INCLUDE_DIR})
  26. include(FindPackageHandleStandardArgs)
  27. find_package_handle_standard_args(
  28. FREETYPE2 DEFAULT_MSG
  29. FREETYPE2_LIBRARY FREETYPE2_INCLUDE_DIR)
  30. mark_as_advanced(FREETYPE2_INCLUDE_DIR FREETYPE2_LIBRARY)