summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt22
-rw-r--r--src/gui/CMakeLists.txt5
2 files changed, 19 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index db1c9c4..a721272 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -76,14 +76,28 @@ add_executable(twinkle-console
${twinkle_OBJS}
)
+set(twinkle_LIBS
+ -lpthread
+ -lresolv
+ ${LibMagic_LIBRARY}
+ ${LIBXML2_LIBRARIES}
+ ${Readline_LIBRARY}
+ ${ILBC_LIBRARIES}
+ ${SPEEX_LIBRARIES}
+ ${ZRTPCPP_LIBRARIES}
+ ${CCRTP_LIBRARIES}
+ ${COMMONCPP_LIBRARIES}
+ ${UCOMMON_LIBRARIES}
+ ${LIBSNDFILE_LIBRARY}
+ ${ALSA_LIBRARY}
+ ${G729_LIBRARY}
+)
+
if (WITH_QT4 OR WITH_QT5)
add_subdirectory(gui)
endif (WITH_QT4 OR WITH_QT5)
-target_link_libraries(twinkle-console -lpthread -lresolv ${LibMagic_LIBRARY} ${LIBXML2_LIBRARIES}
- ${Readline_LIBRARY} ${ILBC_LIBRARIES} ${SPEEX_LIBRARIES} ${ZRTPCPP_LIBRARIES}
- ${CCRTP_LIBRARIES} ${COMMONCPP_LIBRARIES} ${UCOMMON_LIBRARIES} ${LIBSNDFILE_LIBRARY}
- ${ALSA_LIBRARY} ${G729_LIBRARY})
+target_link_libraries(twinkle-console ${twinkle_LIBS})
install(TARGETS twinkle-console DESTINATION bin)
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index e4b5fd5..41e8a04 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -118,10 +118,7 @@ set(TWINKLE_GUI-SRCS
)
add_executable(twinkle ${TWINKLE_GUI-SRCS})
-target_link_libraries(twinkle -lpthread -lresolv ${LibMagic_LIBRARY} ${LIBXML2_LIBRARIES}
- ${Readline_LIBRARY} ${ILBC_LIBRARIES} ${SPEEX_LIBRARIES} ${ZRTPCPP_LIBRARIES}
- ${CCRTP_LIBRARIES} ${COMMONCPP_LIBRARIES} ${UCOMMON_LIBRARIES} ${LIBSNDFILE_LIBRARY}
- ${ALSA_LIBRARY} ${qt_LIBS} ${G729_LIBRARY})
+target_link_libraries(twinkle ${twinkle_LIBS} ${qt_LIBS})
install(TARGETS twinkle DESTINATION bin)
install(FILES ${twinkle_LANG} DESTINATION share/twinkle/lang)