[v2] do not make freeimage compulsary when not needed.
This commit is contained in:
parent
c49becae30
commit
a937c91694
|
@ -158,14 +158,18 @@ IF(BUILD_TESTING)
|
||||||
ENDIF(BUILD_TESTING)
|
ENDIF(BUILD_TESTING)
|
||||||
|
|
||||||
IF(BUILD_TESTING)
|
IF(BUILD_TESTING)
|
||||||
SET(CMAKE_MODULE_PATH "${OPENJPEG_SOURCE_DIR}/CMake")
|
SET(CMAKE_MODULE_PATH "${OPENJPEG_SOURCE_DIR}/CMake")
|
||||||
FIND_PACKAGE(FreeImage REQUIRED)
|
FIND_PACKAGE(FreeImage)
|
||||||
INCLUDE_DIRECTORIES( ${FREEIMAGE_INCLUDE_PATH} )
|
|
||||||
|
|
||||||
SUBDIRS(
|
SUBDIRS(
|
||||||
test_V2_tile_handling
|
test_V2_tile_handling
|
||||||
|
)
|
||||||
|
if(FREEIMAGE_FOUND)
|
||||||
|
INCLUDE_DIRECTORIES( ${FREEIMAGE_INCLUDE_PATH} )
|
||||||
|
SUBDIRS(
|
||||||
test_Free_image_V2_tile_handling
|
test_Free_image_V2_tile_handling
|
||||||
)
|
)
|
||||||
|
endif(FREEIMAGE_FOUND)
|
||||||
ENDIF(BUILD_TESTING)
|
ENDIF(BUILD_TESTING)
|
||||||
|
|
||||||
# Adding test with dataset from:
|
# Adding test with dataset from:
|
||||||
|
|
Loading…
Reference in New Issue