summaryrefslogtreecommitdiff
path: root/mj2
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2007-09-06 10:13:05 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2007-09-06 10:13:05 +0000
commit7e874368f7e620dc7934417776d3124932a8c417 (patch)
tree6c8f82ce2c28b9be2e50b2d3ae029f307c4bbc31 /mj2
parentd3d2a36fbc2b856bd9b6e1a8ed0cab9277e9d517 (diff)
ENH: Start building mj2
Diffstat (limited to 'mj2')
-rw-r--r--mj2/CMakeLists.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/mj2/CMakeLists.txt b/mj2/CMakeLists.txt
new file mode 100644
index 00000000..d8030a71
--- /dev/null
+++ b/mj2/CMakeLists.txt
@@ -0,0 +1,40 @@
+# Makefile for the MJ2 codecs of the OpenJPEG library: frames_to_mj2, mj2_to_frames, extract_j2k_from_mj2 and wrap_j2k_in_mj2
+
+# Headers file are located here:
+INCLUDE_DIRECTORIES(
+ ${OPENJPEG_SOURCE_DIR}/libopenjpeg
+ )
+
+ADD_EXECUTABLE(frames_to_mj2
+ frames_to_mj2.c
+ compat/getopt.c
+ mj2_convert.c mj2.c )
+TARGET_LINK_LIBRARIES(frames_to_mj2 ${OPJ_PREFIX}openjpeg)
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(frames_to_mj2 m)
+ENDIF(UNIX)
+
+ADD_EXECUTABLE(mj2_to_frames
+ mj2_to_frames.c
+ compat/getopt.c mj2_convert.c mj2.c )
+TARGET_LINK_LIBRARIES(mj2_to_frames ${OPJ_PREFIX}openjpeg)
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(mj2_to_frames m)
+ENDIF(UNIX)
+
+ADD_EXECUTABLE(extract_j2k_from_mj2
+ extract_j2k_from_mj2.c
+ mj2.c )
+TARGET_LINK_LIBRARIES(extract_j2k_from_mj2 ${OPJ_PREFIX}openjpeg)
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(extract_j2k_from_mj2 m)
+ENDIF(UNIX)
+
+ADD_EXECUTABLE(wrap_j2k_in_mj2
+ wrap_j2k_in_mj2.c
+ mj2.c )
+TARGET_LINK_LIBRARIES(wrap_j2k_in_mj2 ${OPJ_PREFIX}openjpeg)
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(wrap_j2k_in_mj2 m)
+ENDIF(UNIX)
+