1 # Build the demo app, small examples
\r
3 # First thing define the common source:
\r
5 # Then check if getopt is present:
\r
6 INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
\r
8 # Headers file are located here:
\r
10 ${OPENJPEG_SOURCE_DIR}/libopenjpeg
\r
13 # Do the proper thing when building static...if only there was configured
\r
14 # headers or def files instead
\r
15 IF(NOT BUILD_SHARED_LIBS)
\r
16 ADD_DEFINITIONS(-DOPJ_STATIC)
\r
17 ENDIF(NOT BUILD_SHARED_LIBS)
\r
19 INCLUDE(${OPENJPEG_SOURCE_DIR}/Free_CMakeImport.cmake)
\r
21 # Loop over all executables:
\r
22 FOREACH(exe test2_encoder test2_decoder)
\r
24 ADD_EXECUTABLE(${exe} ${exe}.c)
\r
25 TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg)
\r
27 INSTALL_TARGETS(/bin/ ${exe})
\r