build both shared and static library
This commit is contained in:
parent
36dd87cea8
commit
1329b3240a
|
@ -87,7 +87,9 @@ if(WIN32)
|
||||||
add_definitions(-DOPJ_STATIC)
|
add_definitions(-DOPJ_STATIC)
|
||||||
endif()
|
endif()
|
||||||
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)
|
if(UNIX)
|
||||||
target_link_libraries(${OPENJPEG_LIBRARY_NAME} m)
|
target_link_libraries(${OPENJPEG_LIBRARY_NAME} m)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue