Cryptocurrency mining pool written in C++ for speed. Supports Stratum.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
1.1 KiB

cmake_minimum_required ( VERSION 2.8.12 )
cmake_policy( VERSION 2.8.12 )
project( "PoolServer" )
# Set macros
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/macros")
# build in Release-mode by default if not explicitly set
if( NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE "Release")
endif()
# Install path
if( PREFIX )
set(CMAKE_INSTALL_PREFIX "${PREFIX}")
endif()
# Build options
include(cmake/options.cmake)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(Boost_ALL_DYN_LINK ON)
SET(Boost_ADDITIONAL_VERSIONS "1.62" "1.62.0")
# Boost
find_package(Boost 1.62 COMPONENTS thread chrono program_options date_time system REQUIRED)
message(status "** Boost Include: ${Boost_INCLUDE_DIR}")
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}")
message(status "** Boost Libraries: ${Boost_LIBRARIES}")
# Mysql
if( MYSQL )
find_package(MySQL REQUIRED)
endif()
# GMP
find_package(GMP REQUIRED)
# OpenSSL
find_package(OpenSSL REQUIRED)
# pthreads
find_package(Threads)
# Print options
include(cmake/showoptions.cmake)
# Add sources
add_subdirectory(src)