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.

25 lines
706 B

3 years ago
cmake_minimum_required(VERSION 3.15.0)
set (CMAKE_CXX_STANDARD 17)
3 years ago
set(CMAKE_TOOLCHAIN_FILE cmake/toolchain.cmake)
project(miner_scheduler VERSION 0.1.0)
add_definitions(-DAPP_NAME="miner_scheduler")
add_definitions(-DAPP_VERSION="0.1.0")
add_definitions(-DAPP_GCC="${CMAKE_C_COMPILER_VERSION}")
include(ExternalProject)
include(cmake/fmt.cmake)
include(cmake/wiringOP.cmake)
include(cmake/easyloggingpp.cmake)
include(cmake/croncpp.cmake)
3 years ago
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(miner_scheduler main.cpp
cmd_line_args.cpp)
add_dependencies(miner_scheduler fmt wiringOP easyloggingpp croncpp)
target_link_options(miner_scheduler PRIVATE -static-libgcc -static-libstdc++)
3 years ago