summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-05-27 19:06:22 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-05-27 19:21:54 +0200
commit1272ee769caed1298b9d26b9f8e74a12b2d7c355 (patch)
treeeb68ba44ad7825998677f7a9fdefff94a2a44118 /src/CMakeLists.txt
parent69f57959d50cf08d063484551f15f6990582953d (diff)
downloadkiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.gz
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.bz2
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.xz
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.zip
Updated CMake build scripts to build and install KIRO as library
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a657e1c..395767b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,2 +1,12 @@
-add_library(kiro kiro-trb.c kiro-client.c kiro-server.c)
+add_library(kiro SHARED kiro-trb.c kiro-client.c kiro-server.c)
+set_target_properties(kiro PROPERTIES
+ VERSION "${LIBKIRO_VERSION_MAJOR}.${LIBKIRO_VERSION_MINOR}"
+ SOVERSION ${LIBKIRO_VERSION_PATCH}
+)
target_link_libraries(kiro SDL m rdmacm ibverbs pthread)
+
+install(FILES kiro-rdma.h kiro-trb.h kiro-client.h kiro-server.h DESTINATION ${HEADER_INSTALL_DIR})
+
+install(TARGETS kiro
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+)