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.

56 lines
1.6 KiB

  1. # Locate the STLSoft Headers.
  2. #
  3. # Defines the following variables:
  4. #
  5. # STLSOFT_FOUND - Found the Pantheios Logging Framework
  6. # STLSOFT_INCLUDE_DIRS - Include directories
  7. #
  8. # Accepts the following variables as input:
  9. #
  10. # STLSOFT_ROOT - (as a CMake or environment variable)
  11. # The root directory of the STLSoft install prefix
  12. #
  13. #
  14. #=============================================================================
  15. # Copyright 2012 Philipp Berger <admin@philippberger.de>
  16. #
  17. # Distributed under the OSI-approved BSD License (the "License");
  18. # see accompanying file Copyright.txt for details.
  19. #
  20. # This software is distributed WITHOUT ANY WARRANTY; without even the
  21. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  22. # See the License for more information.
  23. #=============================================================================
  24. # (To distribute this file outside of CMake, substitute the full
  25. # License text for the above reference.)
  26. #
  27. if(STLSOFT_INCLUDE_DIR)
  28. if (NOT STLSOFT_ROOT)
  29. get_filename_component(STLSOFT_ROOT "${STLSOFT_INCLUDE_DIR}" PATH)
  30. endif()
  31. get_filename_component(STLSOFT_ROOT_HINT "${STLSOFT_INCLUDE_DIR}" PATH)
  32. endif()
  33. find_path(STLSOFT_INCLUDE_DIR stlsoft/stlsoft.h
  34. PATH_SUFFIXES include
  35. HINTS ${STLSOFT_ROOT} ${STLSOFT_ROOT_HINT}
  36. ENV STLSOFT_ROOT
  37. )
  38. set(STLSOFT_INCLUDE_DIRS ${STLSOFT_INCLUDE_DIR})
  39. # handle the QUIETLY and REQUIRED arguments and set STLSOFT_FOUND to TRUE if
  40. # all listed variables are TRUE
  41. include(FindPackageHandleStandardArgs)
  42. FIND_PACKAGE_HANDLE_STANDARD_ARGS(STLSoft
  43. REQUIRED_VARS STLSOFT_INCLUDE_DIR
  44. )
  45. mark_as_advanced(STLSOFT_INCLUDE_DIR)