diff options
| author | Antonin Descampe <antonin@gmail.com> | 2011-03-21 21:51:04 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2011-03-21 21:51:04 +0000 |
| commit | 1fd9603c55e16aaa080e16525afd75079203c0dc (patch) | |
| tree | 3118cf0a2b9428ae0d5c63fec5227b31ff4a575a /thirdparty | |
| parent | 279b67c838556a0b61f1de5a4a4d06e6375111c5 (diff) | |
added two files FindLCMS.cmake and FindLCMS2.cmake as they are not shipped by default with other cmake modules.
Diffstat (limited to 'thirdparty')
| -rw-r--r-- | thirdparty/FindLCMS.cmake | 24 | ||||
| -rw-r--r-- | thirdparty/FindLCMS2.cmake | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/thirdparty/FindLCMS.cmake b/thirdparty/FindLCMS.cmake new file mode 100644 index 00000000..8125e620 --- /dev/null +++ b/thirdparty/FindLCMS.cmake @@ -0,0 +1,24 @@ +# - Find LCMS library +# Find the native LCMS includes and library +# This module defines +# LCMS_INCLUDE_DIR, where to find tiff.h, etc. +# LCMS_LIBRARIES, libraries to link against to use LCMS. +# LCMS_FOUND, If false, do not try to use LCMS. +# also defined, but not for general use are +# LCMS_LIBRARY, where to find the LCMS library. +# +FIND_PATH(LCMS_INCLUDE_DIR lcms.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include) +# +SET(LCMS_NAMES ${LCMS_NAMES} lcms liblcms liblcms_static) +FIND_LIBRARY(LCMS_LIBRARY NAMES ${LCMS_NAMES} ) +# +# handle the QUIETLY and REQUIRED arguments and set LCMS_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS DEFAULT_MSG LCMS_LIBRARY LCMS_INCLUDE_DIR) +# +IF(LCMS_FOUND) + SET( LCMS_LIBRARIES ${LCMS_LIBRARY} ) +ENDIF(LCMS_FOUND) + +MARK_AS_ADVANCED(LCMS_INCLUDE_DIR LCMS_LIBRARY) diff --git a/thirdparty/FindLCMS2.cmake b/thirdparty/FindLCMS2.cmake new file mode 100644 index 00000000..219800e8 --- /dev/null +++ b/thirdparty/FindLCMS2.cmake @@ -0,0 +1,23 @@ +# - Find LCMS2 library +# Find the native LCMS2 includes and library +# This module defines +# LCMS2_INCLUDE_DIR, where to find tiff.h, etc. +# LCMS2_LIBRARIES, libraries to link against to use LCMS2. +# LCMS2_FOUND, If false, do not try to use LCMS2. +# also defined, but not for general use are +# LCMS2_LIBRARY, where to find the LCMS2 library. +# +FIND_PATH(LCMS2_INCLUDE_DIR lcms2.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include) +SET(LCMS2_NAMES ${LCMS2_NAMES} lcms2 liblcms2 liblcms2_static) +FIND_LIBRARY(LCMS2_LIBRARY NAMES ${LCMS2_NAMES} ) + +# handle the QUIETLY and REQUIRED arguments and set LCMS2_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS2 DEFAULT_MSG LCMS2_LIBRARY LCMS2_INCLUDE_DIR) +# +IF(LCMS2_FOUND) + SET( LCMS2_LIBRARIES ${LCMS2_LIBRARY} ) +ENDIF(LCMS2_FOUND) +# +MARK_AS_ADVANCED(LCMS2_INCLUDE_DIR LCMS2_LIBRARY) |
