From e12008a7187145a324a793cfed44abc380a25e91 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Wed, 16 Feb 2011 13:55:04 +0000 Subject: [PATCH] Make sure to be able to compile index_create on UNIX. Install target --- CMakeLists.txt | 4 ++-- indexer_JPIP/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2137930..c2e5a9a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,9 +184,9 @@ ENDIF(BUILD_JP3D) #----------------------------------------------------------------------------- # Build INDEXER_JPIP executables ? OPTION(BUILD_INDEXER_JPIP "Build the INDEXER_JPIP executables" OFF) -IF(BUILD_INDEXER_JPIP AND NOT UNIX) +IF(BUILD_INDEXER_JPIP) SUBDIRS(indexer_JPIP) -ENDIF(BUILD_INDEXER_JPIP AND NOT UNIX) +ENDIF(BUILD_INDEXER_JPIP) #----------------------------------------------------------------------------- # Build DOCUMENTATION ? diff --git a/indexer_JPIP/CMakeLists.txt b/indexer_JPIP/CMakeLists.txt index 4dbb95b0..c8e378d1 100644 --- a/indexer_JPIP/CMakeLists.txt +++ b/indexer_JPIP/CMakeLists.txt @@ -3,3 +3,7 @@ ADD_EXECUTABLE(index_create bio.c cio.c int.c pi.c t2.c tgt.c tcd.c index_create.c jpip.c jp2.c ) +INSTALL(TARGETS index_create + EXPORT OpenJPEGTargets + DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications +)