diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2010-06-23 13:22:03 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2010-06-23 13:22:03 +0000 |
| commit | 8dcd3318c2b72ef09788a099a54caa26ca2cc3b1 (patch) | |
| tree | 87fff3d6264fa555b71beed7e8cfb19e493487b1 | |
| parent | f71e6e78791f4a8c7963f82aed5c06b9372b9b87 (diff) | |
Attempt to fix win32 compilation
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | test_Free_image_V2_tile_handling/CMakeLists.txt | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8603275b..ac44fa67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,6 +155,9 @@ IF(BUILD_TESTING) ENDIF(BUILD_TESTING) IF(BUILD_TESTING) +SET(CMAKE_MODULE_PATH "${OPENJPEG_SOURCE_DIR}/CMake") +FIND_PACKAGE(FreeImage REQUIRED) + SUBDIRS( test_V2_tile_handling test_Free_image_V2_tile_handling diff --git a/test_Free_image_V2_tile_handling/CMakeLists.txt b/test_Free_image_V2_tile_handling/CMakeLists.txt index f75ea8cd..277e3e3b 100644 --- a/test_Free_image_V2_tile_handling/CMakeLists.txt +++ b/test_Free_image_V2_tile_handling/CMakeLists.txt @@ -16,7 +16,8 @@ IF(NOT BUILD_SHARED_LIBS) ADD_DEFINITIONS(-DOPJ_STATIC) ENDIF(NOT BUILD_SHARED_LIBS) -INCLUDE(${OPENJPEG_SOURCE_DIR}/CMake/Free_CMakeImport.cmake) +#INCLUDE(${OPENJPEG_SOURCE_DIR}/CMake/Free_CMakeImport.cmake) +ADD_DEFINITIONS ( -DFREEIMAGE_LIB ) # Loop over all executables: FOREACH(exe test2_encoder test2_decoder) |
