[v2] do not make freeimage compulsary when not needed.

This commit is contained in:
Mathieu Malaterre 2012-03-11 13:57:26 +00:00
parent c49becae30
commit a937c91694
1 changed files with 9 additions and 5 deletions

View File

@ -158,14 +158,18 @@ IF(BUILD_TESTING)
ENDIF(BUILD_TESTING)
IF(BUILD_TESTING)
SET(CMAKE_MODULE_PATH "${OPENJPEG_SOURCE_DIR}/CMake")
FIND_PACKAGE(FreeImage REQUIRED)
INCLUDE_DIRECTORIES( ${FREEIMAGE_INCLUDE_PATH} )
SET(CMAKE_MODULE_PATH "${OPENJPEG_SOURCE_DIR}/CMake")
FIND_PACKAGE(FreeImage)
SUBDIRS(
test_V2_tile_handling
test_Free_image_V2_tile_handling
)
)
if(FREEIMAGE_FOUND)
INCLUDE_DIRECTORIES( ${FREEIMAGE_INCLUDE_PATH} )
SUBDIRS(
test_Free_image_V2_tile_handling
)
endif(FREEIMAGE_FOUND)
ENDIF(BUILD_TESTING)
# Adding test with dataset from: