diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-03-11 13:57:26 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-03-11 13:57:26 +0000 |
| commit | a937c91694337a905df6c8d51579d4d4498ec022 (patch) | |
| tree | 63d40e5837d7767309108098fb7f9647b354f4f7 | |
| parent | c49becae300bd74da17395f3b84ecef20717092f (diff) | |
[v2] do not make freeimage compulsary when not needed.
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 96664b67..331c124a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: |
