Fix filesystem locking when creating a new inode.
[bluesky.git] / bluesky / CMakeLists.txt
1 set(KVSTORE_DIR "${CMAKE_SOURCE_DIR}/kvstore")
2 include_directories("${LIBS3_BUILD_DIR}/include" ${KVSTORE_DIR})
3 link_directories("${LIBS3_BUILD_DIR}/lib" ${KVSTORE_DIR})
4
5 add_library(bluesky SHARED
6             cache.c crypto.c debug.c dir.c file.c init.c inode.c serialize.c
7             store.c store-kv.cc store-s3.c util.c)
8 add_executable(bluesky-test main.c)
9
10 set(CMAKE_C_FLAGS "-Wall -std=gnu99 ${CMAKE_C_FLAGS}")
11 set(INSTALL_RPATH_USE_LINK_PATH 1)
12
13 include_directories(${GLIB_INCLUDE_DIRS})
14 target_link_libraries(bluesky ${GLIB_LIBRARIES} gcrypt s3 kvclient)
15 target_link_libraries(bluesky-test bluesky ${GLIB_LIBRARIES})
16
17 #set_target_properties(bluesky PROPERTIES LINK_INTERFACE_LIBRARIES "")