summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-06-16 12:50:47 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-06-16 12:50:47 +0200
commit65a5ea404fdbd19f3996a11348c2e7e09e8f06a4 (patch)
tree950032b2e923ee62255d355ad0fe4d7e38f908d8
parent329732eef0264d044cc8ce0095e8ec56589dd400 (diff)
downloadbetriebssysteme-65a5ea404fdbd19f3996a11348c2e7e09e8f06a4.tar.gz
betriebssysteme-65a5ea404fdbd19f3996a11348c2e7e09e8f06a4.zip
Added ppmlib to cmake and threapool.h
-rw-r--r--04_exercise/CMakeLists.txt7
-rw-r--r--04_exercise/ppmlib/ppmlib.h (renamed from 04_exercise/ppmlib.h)0
-rw-r--r--04_exercise/threadpool.h1
3 files changed, 6 insertions, 2 deletions
diff --git a/04_exercise/CMakeLists.txt b/04_exercise/CMakeLists.txt
index 18f3fb7..642da4c 100644
--- a/04_exercise/CMakeLists.txt
+++ b/04_exercise/CMakeLists.txt
@@ -6,7 +6,7 @@ target_link_libraries(quicksort PRIVATE threadpool)
add_library(threadpool threadpool.c)
target_link_libraries(threadpool PRIVATE array Threads::Threads arena_list)
-target_link_libraries(threadpool INTERFACE warnings)
+target_link_libraries(threadpool INTERFACE warnings ppmlib)
add_executable(fibonacci main.c)
@@ -23,4 +23,7 @@ target_link_libraries(arena_test PRIVATE arena_list)
add_library(rwlock rwlock/rwlock.c)
target_include_directories(rwlock PUBLIC rwlock)
-target_link_libraries(rwlock INTERFACE warnings) \ No newline at end of file
+target_link_libraries(rwlock INTERFACE warnings)
+
+add_library(ppmlib INTERFACE)
+target_include_directories(ppmlib INTERFACE ppmlib) \ No newline at end of file
diff --git a/04_exercise/ppmlib.h b/04_exercise/ppmlib/ppmlib.h
index 7a7f3db..7a7f3db 100644
--- a/04_exercise/ppmlib.h
+++ b/04_exercise/ppmlib/ppmlib.h
diff --git a/04_exercise/threadpool.h b/04_exercise/threadpool.h
index f73e36c..745c4dd 100644
--- a/04_exercise/threadpool.h
+++ b/04_exercise/threadpool.h
@@ -3,6 +3,7 @@
#include <stdatomic.h>
#include <stddef.h>
+#include <ppmlib.h>
/**@brief Funktionszeiger auf eine asynchron auszuführende Funktion.
*