diff options
author | Christopher Harvey <chris@basementcode.com> | 2008-11-12 17:26:53 (GMT) |
---|---|---|
committer | Christopher Harvey <chris@basementcode.com> | 2008-11-12 17:26:53 (GMT) |
commit | 00d1ffd81231494c2b9e6842bd1de5dc79dbf4d0 (patch) | |
tree | fcf5546870136adf9e7c1a6d3b3bea91c90107c3 /Modules/FindDevIL.cmake | |
parent | 8fc863f77284bba55c1a49859b3a0a3c6f09474c (diff) | |
download | CMake-00d1ffd81231494c2b9e6842bd1de5dc79dbf4d0.zip CMake-00d1ffd81231494c2b9e6842bd1de5dc79dbf4d0.tar.gz CMake-00d1ffd81231494c2b9e6842bd1de5dc79dbf4d0.tar.bz2 |
ENH: Added First revision of FindDevIL.cmake
Diffstat (limited to 'Modules/FindDevIL.cmake')
-rw-r--r-- | Modules/FindDevIL.cmake | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake new file mode 100644 index 0000000..a251135 --- /dev/null +++ b/Modules/FindDevIL.cmake @@ -0,0 +1,51 @@ +# This module locates the developer's image library. +# http://openil.sourceforge.net/ +# +# This module sets: +# IL_LIBRARY the name of the IL library. +# ILU_LIBRARY the name of the ILU library. +# ILUT_LIBRARY the name of the ILUT library. +# IL_INCLUDE_DIR where to find the il.h, ilu.h and ilut.h files. +# IL_FOUND this is set to TRUE if all the above variables were set. + +# Original file by: Christopher Harvey +# TODO: Add version support. +# Tested under Linux and Windows (MSVC) + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) +INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) + +FIND_PATH(IL_INCLUDE_DIR il.h + PATH_SUFFIXES include IL + DOC "The path the the directory that contains il.h" +) + +#MESSAGE("IL_INCLUDE_DIR is ${IL_INCLUDE_DIR}") + +FIND_LIBRARY(IL_LIBRARY + NAMES IL + PATH_SUFFIXES lib64 lib lib32 + DOC "The file that corresponds to the base il library." +) + +#MESSAGE("IL_LIBRARY is ${IL_LIBRARY}") + +FIND_LIBRARY(ILUT_LIBRARY + NAMES ILUT + PATH_SUFFIXES lib64 lib lib32 + DOC "The file that corresponds to the il (system?) utility library." +) + +#MESSAGE("ILUT_LIBRARY is ${ILUT_LIBRARY}") + +FIND_LIBRARY(ILU_LIBRARY + NAMES ILU + PATH_SUFFIXES lib64 lib lib32 + DOC "The file that corresponds to the il utility library." +) + +#MESSAGE("ILU_LIBRARY is ${ILU_LIBRARY}") + +FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG + IL_LIBRARY ILU_LIBRARY + ILUT_LIBRARY IL_INCLUDE_DIR) |