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.

53 lines
1.1 KiB

6 years ago
cmake_minimum_required ( VERSION 2.8.12 )
cmake_policy( VERSION 2.8.12 )
project( "PoolServer" )
12 years ago
# 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)
6 years ago
SET(Boost_ADDITIONAL_VERSIONS "1.62" "1.62.0")
12 years ago
# Boost
6 years ago
find_package(Boost 1.62 COMPONENTS thread chrono program_options date_time system REQUIRED)
12 years ago
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()
11 years ago
# GMP
find_package(GMP REQUIRED)
# OpenSSL
find_package(OpenSSL REQUIRED)
6 years ago
# pthreads
find_package(Threads)
12 years ago
# Print options
include(cmake/showoptions.cmake)
# Add sources
12 years ago
add_subdirectory(src)