summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-21 13:54:49 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-21 13:54:49 +0000
commitecd70f033cbc0cc1663004522277ebed4c9d9a3d (patch)
treedfaaa5d13232208acda65d18b6c7e482537f60dc /codec
parent0c69d6e1a845b2649570dc05159b5a5c75cbc242 (diff)
Start using cmake API for easy packaging
Diffstat (limited to 'codec')
-rw-r--r--codec/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index bbdaee19..e55d19da 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -51,7 +51,10 @@ FOREACH(exe j2k_to_image image_to_j2k)
TARGET_LINK_LIBRARIES(${exe} m)
ENDIF(UNIX)
# Install exe
- INSTALL_TARGETS(/bin/ ${exe})
+ INSTALL(TARGETS ${exe}
+ EXPORT OpenJPEGTargets
+ DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
+ )
ENDFOREACH(exe)
if(BUILD_TESTING)