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 /jpwl | |
| parent | af32de46a2cb685a322298f83a7fa49ec1cf5f18 (diff) | |
Fix installation rules in jpwl for CMake
Diffstat (limited to 'jpwl')
| -rwxr-xr-x | jpwl/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
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 +) |
