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.

FindPixman.cmake 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # - Find Pixman
  2. # Find the Pixman libraries
  3. #
  4. # This module defines the following variables:
  5. # PIXMAN_FOUND - true if PIXMAN_INCLUDE_DIR & PIXMAN_LIBRARY are found
  6. # PIXMAN_LIBRARIES - Set when PIXMAN_LIBRARY is found
  7. # PIXMAN_INCLUDE_DIRS - Set when PIXMAN_INCLUDE_DIR is found
  8. #
  9. # PIXMAN_INCLUDE_DIR - where to find pixman.h, etc.
  10. # PIXMAN_LIBRARY - the Pixman library
  11. #
  12. #=============================================================================
  13. # Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
  14. #
  15. # Licensed under the Apache License, Version 2.0 (the "License");
  16. # you may not use this file except in compliance with the License.
  17. # You may obtain a copy of the License at
  18. #
  19. # http://www.apache.org/licenses/LICENSE-2.0
  20. #
  21. # Unless required by applicable law or agreed to in writing, software
  22. # distributed under the License is distributed on an "AS IS" BASIS,
  23. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. # See the License for the specific language governing permissions and
  25. # limitations under the License.
  26. #=============================================================================
  27. find_path(PIXMAN_INCLUDE_DIR NAMES pixman.h PATH_SUFFIXES pixman-1)
  28. find_library(PIXMAN_LIBRARY NAMES pixman-1)
  29. find_package_handle_standard_args(pixman-1 DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR)
  30. if(PIXMAN-1_FOUND)
  31. set(PIXMAN_LIBRARIES ${PIXMAN_LIBRARY})
  32. set(PIXMAN_INCLUDE_DIRS ${PIXMAN_INCLUDE_DIR})
  33. endif()
  34. mark_as_advanced(PIXMAN_INCLUDE_DIR PIXMAN_LIBRARY)