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.

22 lines
740 B

  1. # - Try to find Microsoft GDI+ build files.
  2. # Once done this will define
  3. #
  4. # GDI_PLUS_FOUND - system has GDI+
  5. # GDI_PLUS_INCLUDE_DIR - the GDI+ include directory
  6. # GDI_PLUS_LIBRARIES - Link these to use GDI+
  7. if(GDI_PLUS_INCLUDE_DIR AND GDI_PLUS_LIBRARIES)
  8. set(GDI_PLUS_FIND_QUIETLY TRUE)
  9. endif(GDI_PLUS_INCLUDE_DIR AND GDI_PLUS_LIBRARIES)
  10. find_path(GDI_PLUS_INCLUDE_DIR GdiPlus.h )
  11. find_library(GDI_PLUS_LIBRARIES gdiplus )
  12. # handle the QUIETLY and REQUIRED arguments and set GDI_PLUS_FOUND to TRUE if
  13. # all listed variables are TRUE
  14. include(FindPackageHandleStandardArgs)
  15. find_package_handle_standard_args(GDI_PLUS DEFAULT_MSG GDI_PLUS_LIBRARIES GDI_PLUS_INCLUDE_DIR)
  16. mark_as_advanced(GDI_PLUS_INCLUDE_DIR GDI_PLUS_LIBRARIES)