Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Update cmake files.
Browse files Browse the repository at this point in the history
  • Loading branch information
castano committed May 22, 2008
1 parent ca8d17a commit bc66a7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")

IF(WIN32)
SET(GNUWIN32 "${NV_SOURCE_DIR}/gnuwin32")
SET(GNUWIN32 "${NV_SOURCE_DIR}/extern/gnuwin32")
SET(CMAKE_INCLUDE_PATH "${GNUWIN32}/include")
SET(CMAKE_LIBRARY_PATH "${GNUWIN32}/lib")
ENDIF(WIN32)
Expand Down
17 changes: 7 additions & 10 deletions cmake/FindFreeImage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@

IF (WIN32)
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
$ENV{PROGRAMFILES}/FreeImage/include
${PROJECT_SOURCE_DIR}/FreeImage/include
${PROJECT_SOURCE_DIR}/extern/FreeImage
DOC "The directory where FreeImage.h resides")
FIND_LIBRARY( FREEIMAGE_LIBRARY
NAMES freeimage
NAMES FreeImage freeimage
PATHS
$ENV{PROGRAMFILES}/FreeImage/lib
${PROJECT_SOURCE_DIR}/FreeImage/bin
${PROJECT_SOURCE_DIR}/FreeImage/lib
${PROJECT_SOURCE_DIR}/FreeImage
DOC "The FreeImage library")
ELSE (WIN32)
FIND_PATH( FREEIMAGE_INCLUDE_PATH GL/glew.h
Expand All @@ -27,7 +24,7 @@ ELSE (WIN32)
/opt/local/include
DOC "The directory where FreeImage.h resides")
FIND_LIBRARY( FREEIMAGE_LIBRARY
NAMES freeimage
NAMES FreeImage freeimage
PATHS
/usr/lib64
/usr/lib
Expand All @@ -40,11 +37,11 @@ ENDIF (WIN32)

SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})

IF (FREEIMAGE_INCLUDE_PATH)
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
ELSE (FREEIMAGE_INCLUDE_PATH)
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
ENDIF (FREEIMAGE_INCLUDE_PATH)
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)

MARK_AS_ADVANCED(
FREEIMAGE_FOUND
Expand Down

0 comments on commit bc66a7a

Please sign in to comment.