project(vacationdb VERSION 0.1.0)
link_directories(${PROJECT_BINARY_DIR})

file(GLOB SOURCES_LIBVACATIONDB "src/*.cpp")

include_directories(include)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(Boost_USE_STATIC_LIBS       OFF) # only find static libs
set(Boost_USE_MULTITHREADED      ON)
set(Boost_USE_STATIC_RUNTIME    OFF)
find_package(Boost 1.53.0 COMPONENTS system date_time REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
link_libraries(${Boost_LIBRARIES})

add_compile_options(-DVACATIONDB_EXPORT)

add_library(vacationdb SHARED ${SOURCES_LIBVACATIONDB})

add_compile_options(-UVACATIONDB_EXPORT)

add_subdirectory(tests)

project(vacationdb VERSION 0.1.0)
link_directories(${PROJECT_BINARY_DIR})

file(GLOB SOURCES_LIBVACATIONDB "src/*.cpp")

include_directories(include)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(Boost_USE_STATIC_LIBS       OFF) # only find static libs
set(Boost_USE_MULTITHREADED      ON)
set(Boost_USE_STATIC_RUNTIME    OFF)
find_package(Boost 1.53.0 COMPONENTS system date_time REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
link_libraries(${Boost_LIBRARIES})

add_compile_options(-DVACATIONDB_EXPORT)

if (NOT WIN32)
	add_compile_options(-fpermissive)
endif()

add_library(vacationdb SHARED ${SOURCES_LIBVACATIONDB})

add_compile_options(-UVACATIONDB_EXPORT)

add_subdirectory(tests)

Use -fpermissive on boost using code because of bug in cpp_int.hpp
Use -fpermissive on boost using code because of bug in cpp_int.hpp
