keva-stratum/CMakeLists.txt

21 lines
612 B
CMake
Raw Normal View History

2015-07-05 14:49:07 +05:00
cmake_minimum_required (VERSION 2.8.11)
2017-09-09 22:24:42 +05:00
project(pool)
2015-07-05 14:49:07 +05:00
if (DEFINED ENV{MONERO_DIR})
get_filename_component(MONERO_DIR $ENV{MONERO_DIR} ABSOLUTE)
message("Using Monero source from env ${MONERO_DIR}")
else()
2016-12-05 19:10:26 +05:00
get_filename_component(MONERO_DIR "${CMAKE_SOURCE_DIR}/../monero" ABSOLUTE)
2015-07-05 14:49:07 +05:00
message("Monero surce directory is not defined, using default ${MONERO_DIR}")
endif()
add_subdirectory(hashing)
add_subdirectory(cnutil)
2017-09-09 22:24:42 +05:00
add_custom_command(
OUTPUT build/bin
COMMAND build/env.sh go get -v ./...
)
add_custom_target(build ALL DEPENDS hashing cnutil ${CMAKE_CURRENT_BINARY_DIR}/build/bin)