aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 09:49:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 09:49:54 +0100
commit9556078164353ea1b80bebb386ae4d8ccd4c543d (patch)
tree1b61500ad55b26f47ad04babe7e062466ffc978f /CMakeLists.txt
parentf7f3b848a57771948bd65f632e11501a5c2ca775 (diff)
downloadodr-edilib-9556078164353ea1b80bebb386ae4d8ccd4c543d.tar.gz
odr-edilib-9556078164353ea1b80bebb386ae4d8ccd4c543d.tar.bz2
odr-edilib-9556078164353ea1b80bebb386ae4d8ccd4c543d.zip
Add threaded UDP input to reduce packet loss risk
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c07381e..3515d17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,9 @@ set(VERSION_INFO_MAINT_VERSION git)
# Compiler specific setup
########################################################################
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+find_package(Threads REQUIRED)
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -W -Wall -std=c++11")
@@ -62,7 +65,7 @@ list(APPEND edilib_c_sources
set_source_files_properties(${edilib_cpp_sources} PROPERTIES LANGUAGE "CXX")
set_source_files_properties(${edilib_c_sources} PROPERTIES LANGUAGE "C")
add_executable(edilib ${edilib_cpp_sources} ${edilib_c_sources})
-target_link_libraries(edilib ${FAAD_LIBRARIES})
+target_link_libraries(edilib ${FAAD_LIBRARIES} Threads::Threads)
install(TARGETS edilib DESTINATION bin)