cmake_minimum_required(VERSION 3.15.0) set (CMAKE_CXX_STANDARD 17) 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) 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++)