From 6a8ca5b8bcc4e4639c4ee656c98fd360ad58823e Mon Sep 17 00:00:00 2001 From: "Andre Moreira Magalhaes (andrunko)" Date: Wed, 16 Feb 2011 12:31:06 -0200 Subject: Farstream: Only build the library statically. This is a "unstable" library. --- TelepathyQt4Yell/Farstream/CMakeLists.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'TelepathyQt4Yell') diff --git a/TelepathyQt4Yell/Farstream/CMakeLists.txt b/TelepathyQt4Yell/Farstream/CMakeLists.txt index cf5b9e4..042f884 100644 --- a/TelepathyQt4Yell/Farstream/CMakeLists.txt +++ b/TelepathyQt4Yell/Farstream/CMakeLists.txt @@ -27,11 +27,9 @@ if(FARSTREAM_COMPONENTS_FOUND) tpqt4_generate_mocs(${telepathy_qt4_yell_farstream_MOC_SRCS}) # Create the library - if (ENABLE_COMPILER_COVERAGE) - add_library(telepathy-qt4-yell-farstream STATIC ${telepathy_qt4_yell_farstream_SRCS} ${telepathy_qt4_yell_farstream_MOC_SRCS}) - else (ENABLE_COMPILER_COVERAGE) - add_library(telepathy-qt4-yell-farstream SHARED ${telepathy_qt4_yell_farstream_SRCS} ${telepathy_qt4_yell_farstream_MOC_SRCS}) - endif (ENABLE_COMPILER_COVERAGE) + add_library(telepathy-qt4-yell-farstream STATIC + ${telepathy_qt4_yell_farstream_SRCS} ${telepathy_qt4_yell_farstream_MOC_SRCS}) + # Link target_link_libraries(telepathy-qt4-yell-farstream ${QT_QTDBUS_LIBRARY} @@ -40,18 +38,22 @@ if(FARSTREAM_COMPONENTS_FOUND) ${GSTREAMER_INTERFACE_LIBRARY} telepathy-qt4-yell) + if (ENABLE_COMPILER_COVERAGE) + target_link_libraries(telepathy-qt4-yell-farstream gcov) + endif (ENABLE_COMPILER_COVERAGE) + # Set the correct version number set_target_properties(telepathy-qt4-yell-farstream PROPERTIES - SOVERSION ${TP_QT4_YELL_ABI_VERSION} - VERSION ${TP_QT4_YELL_LIBRARY_VERSION}) + SOVERSION ${TP_QT4_YELL_ABI_VERSION} + VERSION ${TP_QT4_YELL_LIBRARY_VERSION}) # Install the library - watch out for the correct components if (WIN32) install(TARGETS telepathy-qt4-yell-farstream RUNTIME DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream - ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream_headers) + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream_headers) else (WIN32) install(TARGETS telepathy-qt4-yell-farstream LIBRARY DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream - ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream_headers) + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT farstream_headers) endif (WIN32) # Install headers -- cgit v1.2.3