summaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src
diff options
context:
space:
mode:
Diffstat (limited to 'll-database-binding/src')
-rw-r--r--ll-database-binding/src/CMakeLists.txt13
-rw-r--r--ll-database-binding/src/persistence-binding.c (renamed from ll-database-binding/src/ll-database-binding.c)2
2 files changed, 10 insertions, 5 deletions
diff --git a/ll-database-binding/src/CMakeLists.txt b/ll-database-binding/src/CMakeLists.txt
index cea11a3..95a481a 100644
--- a/ll-database-binding/src/CMakeLists.txt
+++ b/ll-database-binding/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-PROJECT_TARGET_ADD(ll-database-binding)
+PROJECT_TARGET_ADD(persistence-binding)
find_package(GDBM)
if(DB_FOUND)
@@ -8,11 +8,16 @@ else(DB_FOUND)
endif(DB_FOUND)
include_directories(${DB_INCLUDE_DIR})
-add_library(ll-database-binding MODULE ll-database-binding.c)
-target_link_libraries(ll-database-binding ${DB_LIBRARY})
+add_library(persistence-binding MODULE persistence-binding.c)
+target_link_libraries(persistence-binding ${DB_LIBRARY})
-set_target_properties(ll-database-binding PROPERTIES
+set_target_properties(persistence-binding PROPERTIES
PREFIX "afb-"
LABELS "BINDING"
LINK_FLAGS ${BINDINGS_LINK_FLAG}
OUTPUT_NAME ${TARGET_NAME})
+
+install(TARGETS persistence-binding
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib) \ No newline at end of file
diff --git a/ll-database-binding/src/ll-database-binding.c b/ll-database-binding/src/persistence-binding.c
index e08156e..6d56309 100644
--- a/ll-database-binding/src/ll-database-binding.c
+++ b/ll-database-binding/src/persistence-binding.c
@@ -459,7 +459,7 @@ static const afb_verb_v2 ll_database_binding_verbs[]= {
};
const struct afb_binding_v2 afbBindingV2 = {
- .api = "ll-database",
+ .api = "persistence",
.specification = NULL,
.verbs = ll_database_binding_verbs,
.preinit = NULL,