Hi list, I wrote this library finding module. If it's good enough for cmake please include it. If not let me know what's wrong with it so I can fix it up. It has only had limited testing under linux. Before it's added it would be nice to get some feedback about what has worked or what hasn't.
thanks, Chris.
# 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 FIND_PATH(IL_INCLUDE_DIR il.h PATH_SUFFIXES include PATHS ~/Library/Frameworks /Library/Frameworks /usr/local/include/IL /usr/include/IL /usr/local/include /usr/include /sw/include/IL /sw/include /opt/local/include/IL /opt/local/include /opt/csw/include/IL /opt/csw/include /opt/include /opt/include 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 PATHS /usr/local /usr /sw /opt/local /opt/csw /opt 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 PATHS /usr/local /usr /sw /opt/local /opt/csw /opt 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 PATHS /usr/local /usr /sw /opt/local /opt/csw /opt DOC "The file that corresponds to the il utility library." ) #MESSAGE("ILU_LIBRARY is ${ILU_LIBRARY}") SET(IL_FOUND FALSE) IF(ILU_LIBRARY AND ILUT_LIBRARY AND IL_LIBRARY AND IL_INCLUDE_DIR) SET(IL_FOUND TRUE) ENDIF(ILU_LIBRARY AND ILUT_LIBRARY AND IL_LIBRARY AND IL_INCLUDE_DIR) IF(DevIL_FIND_REQUIRED AND NOT IL_FOUND) MESSAGE("Required DevIL library not found." FATAL_ERROR) ENDIF(DevIL_FIND_REQUIRED AND NOT IL_FOUND) IF(NOT DevIL_FIND_QUIETLY) IF(IL_FOUND) MESSAGE("Found DevIL.") ELSE(IL_FOUND) MESSAGE("Could not find DevIL.") ENDIF(IL_FOUND) ENDIF(NOT DevIL_FIND_QUIETLY)
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake