# CMake minimun version required to compile
cmake_minimum_required(VERSION 2.6)


# =================================================================
# Project variables
# =================================================================
# Setup these variables and the rest of the CMakeLists.txt won't need more changes.
set(PROJECT_NAME "Blindstore")
set(DAEMON_EXECUTABLE_NAME "blindstore")
set(DAEMON_SOURCE_DIR "${CMAKE_SOURCE_DIR}/daemon")
set(DAEMON_MAIN_FILE "${DAEMON_SOURCE_DIR}/main.cpp")


# =================================================================
# Project properties
# =================================================================
project("${PROJECT_NAME}")

# Specify build output directories
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

# Define executable to be created
add_executable(${DAEMON_EXECUTABLE_NAME} ${DAEMON_MAIN_FILE})

# CMake minimun version required to compile
cmake_minimum_required(VERSION 2.6)

# Prevents cmake from following symbolic links using GLOB
cmake_policy(SET CMP0009 NEW)

# =================================================================
# Project variables
# =================================================================
# Setup these variables and the rest of the CMakeLists.txt won't need more changes.
set(PROJECT_NAME "Blindstore")
set(PROJECT_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/include")
set(PROJECT_LIB_DIR "${CMAKE_SOURCE_DIR}/lib")

set(DAEMON_EXECUTABLE_NAME "blindstore")
set(DAEMON_SOURCE_DIR "${CMAKE_SOURCE_DIR}/daemon")
set(DAEMON_MAIN_FILE "${DAEMON_SOURCE_DIR}/main.cpp")

set(CLIENT_LIBRARY_NAME "blindstore_client")
set(CLIENT_LIBRARY_SOURCE_DIR "${CMAKE_SOURCE_DIR}/client")
set(CLIENT_LIBRARY_HEADER_DIR "${CMAKE_SOURCE_DIR}/include/client")


# =================================================================
# Project properties
# =================================================================
project("${PROJECT_NAME}")

# Specify build output directories
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

# Define executable to be created
add_executable(${DAEMON_EXECUTABLE_NAME} ${DAEMON_MAIN_FILE})


# =================================================================
# Client library
# =================================================================
file(
    GLOB_RECURSE
    CLIENT_LIBRARY_SOURCE_FILES
    "${CLIENT_LIBRARY_SOURCE_DIR}/*.cpp")

add_library(
    ${CLIENT_LIBRARY_NAME}
    ${CLIENT_LIBRARY_SOURCE_FILES})

target_include_directories(
    ${CLIENT_LIBRARY_NAME}
    PUBLIC
    ${CLIENT_LIBRARY_HEADER_DIR})

include_directories(
    "${PROJECT_LIB_DIR}/libshe/include")

Update cmake to compile client library
Update cmake to compile client library
