Make sure to be able to compile index_create on UNIX. Install target
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 16 Feb 2011 13:55:04 +0000 (13:55 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 16 Feb 2011 13:55:04 +0000 (13:55 +0000)
CMakeLists.txt
indexer_JPIP/CMakeLists.txt

index c2137930a311adce2773f5226c7888fc448f76f3..c2e5a9a3a03b7b1de6b542134df58b0f3e2f8aa0 100644 (file)
@@ -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 ?
index 4dbb95b0697c3bb38ce5766874849260d00d114e..c8e378d131485c8d1315f0138b579356c22f6814 100644 (file)
@@ -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
+)