cmake_minimum_required (VERSION 2.8.11)
project (server C CXX)

set (CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -lpthread -ggdb3")
add_definitions(-std=c++11)

add_subdirectory(lib/mongoose)
include_directories(lib/mongoose)

add_subdirectory(src)
add_subdirectory(test)

cmake_minimum_required (VERSION 2.8.11)
project (server C CXX)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../lib/modules)

find_package(Soci COMPONENTS postgresql sqlite3 REQUIRED)

set (CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -lpthread -ggdb3")
add_definitions(-std=c++11)

add_subdirectory(lib/mongoose)
include_directories(lib/mongoose)

add_subdirectory(src)
add_subdirectory(test)

Use FindSoci module instead of manual include
Use FindSoci module instead of manual include

This way we can use Soci on any platform.

Signed-off-by: Petr Stehlík <34fd672d4ba535a5cc62ffb15c811632a40953f1@stud.fit.vutbr.cz>
Tested-by: Jan Viktorin <3eab6ac54c005c4408f608556a6663b7f2abede7@fit.vutbr.cz>
Acked-by: Jan Viktorin <3eab6ac54c005c4408f608556a6663b7f2abede7@fit.vutbr.cz>
