openjpeg/test_Free_image_V2_tile_han.../CMakeLists.txt

30 lines
791 B
CMake
Raw Normal View History

# Build the demo app, small examples
# First thing define the common source:
# Then check if getopt is present:
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
# Headers file are located here:
INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg
)
# Do the proper thing when building static...if only there was configured
# headers or def files instead
IF(NOT BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DOPJ_STATIC)
ENDIF(NOT BUILD_SHARED_LIBS)
2010-06-23 15:22:03 +02:00
#INCLUDE(${OPENJPEG_SOURCE_DIR}/CMake/Free_CMakeImport.cmake)
ADD_DEFINITIONS ( -DFREEIMAGE_LIB )
# Loop over all executables:
FOREACH(exe test2_encoder test2_decoder)
ADD_EXECUTABLE(${exe} ${exe}.c)
TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg)
2010-06-21 13:50:46 +02:00
TARGET_LINK_LIBRARIES(${exe} ${FREEIMAGE_LIBRARIES})
ENDFOREACH(exe)