Attempt to fix win32 compilation

This commit is contained in:
Mathieu Malaterre 2010-06-23 13:22:03 +00:00
parent f71e6e7879
commit 8dcd3318c2
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)