diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-13 16:49:53 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-13 16:49:53 +0000 |
| commit | 65f7f8dc506e3c889e137bef1c730644fc7798eb (patch) | |
| tree | d2b3b3c100541849d7e47e3982b053a61bcd2eda /CMake/FindLCMS2.cmake | |
| parent | 36c8d85f4335b3d6dd518e45efe3b6ccedda4c06 (diff) | |
improved some CMakeLists files linked to the build of applications which used thirdparty
Diffstat (limited to 'CMake/FindLCMS2.cmake')
| -rw-r--r-- | CMake/FindLCMS2.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/CMake/FindLCMS2.cmake b/CMake/FindLCMS2.cmake new file mode 100644 index 00000000..b781d84c --- /dev/null +++ b/CMake/FindLCMS2.cmake @@ -0,0 +1,31 @@ +# - Find LCMS2 library +# Find the native LCMS2 includes and library +# Once done this will define +# +# LCMS2_INCLUDE_DIR - Where to find lcms2.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} ) + +MARK_AS_ADVANCED(LCMS2_INCLUDE_DIR LCMS2_LIBRARY) + +# 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_INCLUDE_DIRS ${LCMS2_INCLUDE_DIR}) + SET( LCMS2_LIBRARIES ${LCMS2_LIBRARY} ) +ENDIF(LCMS2_FOUND) |
