summaryrefslogtreecommitdiff
path: root/src/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-25 10:33:09 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-25 10:33:09 +0100
commitdc8e71461eb6c1c72dbfd38261a1616c053e7bbd (patch)
tree3480b39405a9ce935a5d110ebfacc121f9440b37 /src/lib/CMakeLists.txt
parentc32ccc39cfc793729890204c8d810eb7608f4474 (diff)
parent0dd4526f5c75f23aba886bee2d9850a70aa67ca8 (diff)
downloadouroboros-dc8e71461eb6c1c72dbfd38261a1616c053e7bbd.tar.gz
ouroboros-dc8e71461eb6c1c72dbfd38261a1616c053e7bbd.zip
Merged in dstaesse/ouroboros/be-shm (pull request #37)
lib: shared memory map
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rw-r--r--src/lib/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index e81f3475..7ce98bf2 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -4,6 +4,16 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_BINARY_DIR}/include)
+find_library(LIBRT_LIBRARIES rt)
+if(NOT LIBRT_LIBRARIES)
+ message(FATAL_ERROR "librt not found")
+endif()
+
+find_library(LIBPTHREAD_LIBRARIES pthread)
+if(NOT LIBPTHREAD_LIBRARIES)
+ message(FATAL_ERROR "libpthread not found")
+endif()
+
set(SOURCE_FILES
# Add source files here
bitmap.c
@@ -15,11 +25,13 @@ set(SOURCE_FILES
irm.c
list.c
rina_name.c
+ shm_du_map.c
sockets.c
utils.c
)
add_library(ouroboros SHARED ${SOURCE_FILES})
+target_link_libraries(ouroboros rt pthread)
include(MacroAddCompileFlags)
if (CMAKE_BUILD_TYPE MATCHES Debug)