|
|
@ -5,7 +5,7 @@ FIND_PACKAGE(CUDA REQUIRED) |
|
|
|
file(GLOB SRC_LIST "*.cpp" "*.cu") |
|
|
|
file(GLOB HEADERS "*.h" "*.cuh") |
|
|
|
|
|
|
|
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};--std=c++11;--disable-warnings;--ptxas-options=-v;-use_fast_math;-lineinfo) |
|
|
|
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};--disable-warnings;--ptxas-options=-v;-use_fast_math;-lineinfo) |
|
|
|
|
|
|
|
LIST(APPEND CUDA_NVCC_FLAGS_RELEASE -O3) |
|
|
|
LIST(APPEND CUDA_NVCC_FLAGS_DEBUG -G) |
|
|
@ -25,4 +25,4 @@ CUDA_ADD_LIBRARY(${EXECUTABLE} STATIC ${SRC_LIST} ${HEADERS}) |
|
|
|
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${CUDA_LIBRARIES} ethash) |
|
|
|
|
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) |
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) |
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) |
|
|
|