summaryrefslogtreecommitdiff
path: root/TelepathyQt4Yell
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-02-16 12:31:06 -0200
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-02-16 12:41:48 -0200
commit6a8ca5b8bcc4e4639c4ee656c98fd360ad58823e (patch)
tree22ee73bbd0d0c5292f0a08ac84c0e9e1b1462851 /TelepathyQt4Yell
parent8e172ebaf4f5fbac9ad0ab2c95535aa976a4a9d3 (diff)
Farstream: Only build the library statically. This is a "unstable" library.
Diffstat (limited to 'TelepathyQt4Yell')
-rw-r--r--TelepathyQt4Yell/Farstream/CMakeLists.txt20
1 files changed, 11 insertions, 9 deletions
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