aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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)