|
|
@ -23,7 +23,11 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
|
|
|
include_directories(${Boost_INCLUDE_DIRS}) |
|
|
|
include_directories(..) |
|
|
|
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) |
|
|
|
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${OpenCL_TARGET} ethash) |
|
|
|
if (APPLE) |
|
|
|
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${OpenCL_LIBRARY} ethash) |
|
|
|
else() |
|
|
|
TARGET_LINK_LIBRARIES(${EXECUTABLE} OpenCL_ICD ethash) |
|
|
|
endif() |
|
|
|
|
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) |
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) |
|
|
|