aboutsummaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src/CMakeLists.txt
blob: 95a481a0c8cab6b39f0c0511724c963369cccf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PROJECT_TARGET_ADD(persistence-binding)

find_package(GDBM)
if(DB_FOUND)
  add_definitions(-DUSE_GDBM)
else(DB_FOUND)
  find_package(BerkeleyDB REQUIRED)
endif(DB_FOUND)
include_directories(${DB_INCLUDE_DIR})

add_library(persistence-binding MODULE persistence-binding.c)
target_link_libraries(persistence-binding ${DB_LIBRARY})

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)