summaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src/CMakeLists.txt
blob: cea11a33984ca971dddc0083af82c3f7df64e2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PROJECT_TARGET_ADD(ll-database-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(ll-database-binding MODULE ll-database-binding.c)
target_link_libraries(ll-database-binding ${DB_LIBRARY})

set_target_properties(ll-database-binding PROPERTIES
        PREFIX "afb-"
        LABELS "BINDING"
        LINK_FLAGS ${BINDINGS_LINK_FLAG}
        OUTPUT_NAME ${TARGET_NAME})