projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36dd87c
)
build both shared and static library
author
Jeroen Ooms
<jeroenooms@gmail.com>
Fri, 16 Jun 2017 11:27:19 +0000
(13:27 +0200)
committer
Jeroen Ooms
<jeroenooms@gmail.com>
Fri, 16 Jun 2017 11:27:19 +0000
(13:27 +0200)
src/lib/openjp2/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/CMakeLists.txt
b/src/lib/openjp2/CMakeLists.txt
index ad77c6e33b767f76b74572081416a65b58280af6..635cc29f1f7ec18a8957846c67c6f1d8355c73a5 100644
(file)
--- a/
src/lib/openjp2/CMakeLists.txt
+++ b/
src/lib/openjp2/CMakeLists.txt
@@
-87,7
+87,9
@@
if(WIN32)
add_definitions(-DOPJ_STATIC)
endif()
endif()
-add_library(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
+add_library(${OPENJPEG_LIBRARY_NAME} SHARED ${OPENJPEG_SRCS})
+add_library(openjp2_static STATIC ${OPENJPEG_SRCS})
+set_target_properties(openjp2_static PROPERTIES OUTPUT_NAME ${OPENJPEG_LIBRARY_NAME})
if(UNIX)
target_link_libraries(${OPENJPEG_LIBRARY_NAME} m)
endif()