## # @brief Builds the standalone version of Circle Hough GPU algorithm # @details CMake file for building the GPU standalone Circle Hough. Necessary compiler flags are set. # # @date 31 Jul 2015 # @author Andreas Herten # @author Ludovico Bianchi ## cmake_minimum_required(VERSION 2.8) find_package(CUDA) if (ROOT_FOUND) add_definitions(-DTHERE_IS_ROOT) # message (STATUS "-CH- There is ROOT") endif (ROOT_FOUND) add_definitions(-DCH_STANDALONE) # message(STATUS "-CH- Running standalone") set(CUDA_SRC chStandalone.cu ) list(APPEND CUDA_NVCC_FLAGS --gpu-architecture sm_20) list(APPEND CUDA_NVCC_FLAGS --std c++11) # list(APPEND CUDA_NVCC_FLAGS --verbose) # set(CUDA_PROPAGATE_HOST_FLAGS OFF) # might be needed to set to off because of a bug of nvcc in how it propagates CMAKE_CXX_FLAGS to the host compiler CUDA_ADD_EXECUTABLE( run ${CUDA_SRC} )