cpfm/CMakeLists.txt
2018-01-11 21:47:59 +01:00

44 lines
1.2 KiB
CMake

cmake_minimum_required (VERSION 3.2)
project (cpfm)
set(EXECUTABLE cpfm)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(sqlpp11 REQUIRED)
include_directories(${SQLPP11_INCLUDE_DIR})
find_package(sqlpp11-connector-mysql REQUIRED)
include_directories(${SQLPP11_MYSQL_INCLUDE_DIR})
set(LIBS ${LIBS} ${SQLPP11_MYSQL_LIBRARIES})
find_package(HinnantDate REQUIRED)
include_directories(${HinnantDate_INCLUDE_DIR})
set(LIBS ${LIBS} ${HinnantDate_LIBRARIES})
find_package(GMP REQUIRED)
include_directories(${GMP_INCLUDE_DIR})
set(LIBS ${LIBS} ${GMP_LIBRARIES})
find_package(MySQL REQUIRED)
include_directories(${MYSQL_INCLUDE_DIR})
set(LIBS ${LIBS} ${MYSQL_LIBRARIES})
find_package(Threads REQUIRED)
set(LIBS ${LIBS} Threads::Threads)
find_package(Boost REQUIRED COMPONENTS date_time filesystem system)
include_directories(${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${Boost_LIBRARIES})
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
set(LIBS ${LIBS} ${OPENSSL_LIBRARIES})
set(LIBS ${LIBS} "-lcpprest")
include_directories(src)
include_directories(src/wallets)
include_directories(src/exchanges)
set(CMAKE_CXX_STANDARD 11)
add_subdirectory(src)