*/}}

FindLCMS2.cmake 623 B

1234567891011121314151617
  1. find_path(LCMS2_INCLUDE_DIR lcms2.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
  2. set(LCMS2_NAMES ${LCMS2_NAMES} lcms2 liblcms2 liblcms2_static)
  3. find_library(LCMS2_LIBRARY NAMES ${LCMS2_NAMES} )
  4. mark_as_advanced(LCMS2_INCLUDE_DIR LCMS2_LIBRARY)
  5. # handle the QUIETLY and REQUIRED arguments and set LCMS2_FOUND to TRUE if
  6. # all listed variables are TRUE
  7. include(FindPackageHandleStandardArgs)
  8. FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS2 DEFAULT_MSG LCMS2_LIBRARY LCMS2_INCLUDE_DIR)
  9. if(LCMS2_FOUND)
  10. set( LCMS2_INCLUDE_DIRS ${LCMS2_INCLUDE_DIR})
  11. set( LCMS2_LIBRARIES ${LCMS2_LIBRARY} )
  12. endif()