21 lines
427 B
CMake
21 lines
427 B
CMake
set(SOURCES
|
|
EthashAux.h EthashAux.cpp
|
|
Farm.cpp Farm.h
|
|
Miner.h Miner.cpp
|
|
)
|
|
|
|
include_directories(BEFORE ..)
|
|
|
|
add_library(ethcore ${SOURCES})
|
|
target_link_libraries(ethcore PUBLIC devcore ethash PRIVATE hwmon)
|
|
|
|
if(ETHASHCL)
|
|
target_link_libraries(ethcore PRIVATE ethash-cl)
|
|
endif()
|
|
if(ETHASHCUDA)
|
|
target_link_libraries(ethcore PUBLIC ethash-cuda)
|
|
endif()
|
|
if(ETHASHCPU)
|
|
target_link_libraries(ethcore PUBLIC ethash-cpu)
|
|
endif()
|