d36106faf9
With tweaks from dcoppa@, ok dcoppa@ brad@
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
$OpenBSD: patch-src_CMakeLists_txt,v 1.1 2012/11/29 19:07:57 pascal Exp $
|
|
--- src/CMakeLists.txt.orig Sat Oct 31 19:22:43 2009
|
|
+++ src/CMakeLists.txt Tue Nov 27 18:19:03 2012
|
|
@@ -74,6 +74,7 @@ SET( wv2_HEADERS
|
|
)
|
|
|
|
ADD_LIBRARY( wv2 SHARED ${wv2_SOURCES} ${wv2_HEADERS} )
|
|
+ADD_LIBRARY( wv2Static STATIC ${wv2_SOURCES} ${wv2_HEADERS} )
|
|
TARGET_LINK_LIBRARIES( wv2 ${ZLIB_LIBRARIES} ${LIBGSF_LIBRARIES} ${ICONV_LIBRARIES} ${GLIB2_LIBRARIES} )
|
|
SET_TARGET_PROPERTIES( wv2 PROPERTIES
|
|
SOVERSION ${LT_VERSION_CURRENT}
|
|
@@ -83,15 +84,18 @@ SET_TARGET_PROPERTIES( wv2 PROPERTIES
|
|
LT_VERSION_REVISION ${LT_VERSION_REVISION}
|
|
LT_DEPENDENCY_LIBS ${WV2_LDFLAGS}
|
|
)
|
|
+SET_TARGET_PROPERTIES( wv2Static PROPERTIES
|
|
+ OUTPUT_NAME wv2
|
|
+ )
|
|
IF( WIN32 )
|
|
SET_TARGET_PROPERTIES( wv2 PROPERTIES DEFINE_SYMBOL WV2_DLL )
|
|
ENDIF( WIN32 )
|
|
|
|
-INSTALL( TARGETS wv2
|
|
+INSTALL( TARGETS wv2 wv2Static
|
|
EXPORT wvWare
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
- ARCHIVE DESTINATION lib${LIB_SUFFIX}/static
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
|
)
|
|
|
|
INSTALL( EXPORT wvWare DESTINATION lib${LIB_SUFFIX}/wvWare FILE wv2.cmake )
|