diff options
| author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-10-28 14:34:37 +0000 |
|---|---|---|
| committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-10-28 14:34:37 +0000 |
| commit | 2a4563a677656e3071be9ac07c7ae83b5b379498 (patch) | |
| tree | 4fbb8e889012c346ee9bc332fe0e12200d41d5ff | |
| parent | af32de46a2cb685a322298f83a7fa49ec1cf5f18 (diff) | |
Fix installation rules in jpwl for CMake
| -rw-r--r-- | CHANGES | 4 | ||||
| -rwxr-xr-x | jpwl/CMakeLists.txt | 11 |
2 files changed, 14 insertions, 1 deletions
@@ -5,6 +5,10 @@ What's New for OpenJPEG ! : changed + : added +October 28, 2010 +* [ben.boeckel] Set the soname and soversion on the jpwl library with CMake ++ [ben.boeckel] Install jpwl binaries with CMake + October 26, 2010 * [ben.boeckel] Install symlinks to versioned directory headers when using CMake + [ben.boeckel] Set the library version on jp3d when using CMake diff --git a/jpwl/CMakeLists.txt b/jpwl/CMakeLists.txt index 161fbddd..ee4856d0 100755 --- a/jpwl/CMakeLists.txt +++ b/jpwl/CMakeLists.txt @@ -33,7 +33,13 @@ IF(DONT_HAVE_GETOPT) ) ENDIF(DONT_HAVE_GETOPT) -ADD_LIBRARY(openjpeg_JPWL STATIC ${JPWL_SRCS} ${OPJ_SRCS}) +ADD_LIBRARY(openjpeg_JPWL ${JPWL_SRCS} ${OPJ_SRCS}) +SET_TARGET_PROPERTIES(openjpeg_JPWL PROPERTIES + ${OPENJPEG_LIBRARY_PROPERTIES}) + +INSTALL(TARGETS openjpeg_JPWL + DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries +) # Do the proper thing when building static...if only there was configured # headers or def files instead @@ -86,3 +92,6 @@ IF(UNIX) TARGET_LINK_LIBRARIES(JPWL_image_to_j2k m) ENDIF(UNIX) +INSTALL(TARGETS JPWL_image_to_j2k JPWL_j2k_to_image + DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Binaries +) |
