From 547f6b985457cf9ea3afcec70ecefbcb8946b324 Mon Sep 17 00:00:00 2001 From: Mahsa Date: Fri, 19 Apr 2019 17:41:42 -0500 Subject: [PATCH] first commit --- CMakeLists.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+), 0 deletions(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..737b956 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,50 @@ +#Specify the minimum CMake version +cmake_minimum_required(VERSION 2.8) + +#Specify the name of the project +project(hypersnakuscules) + + +#set the module directory +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") + +#find OpenCV +find_package(OpenCV REQUIRED ) + +#find the STIM library +find_package(STIM) + +#find the CUDA libraries +find_package(CUDA REQUIRED) + + +#build the executable in the binary directory on MS Visual Studio +if ( MSVC ) + SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}") + SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}") +endif ( MSVC ) + + +#Specify the CUDA include directories for the project +include_directories( + ${STIM_INCLUDE_DIRS} + ${CUDA_INCLUDE_DIRS} + ) + +#create an executable from the given CUDA files +cuda_add_executable(hypersnakuscules + main.cu + ) + +#specify any additional libraries here (CUFFT and CUBLAS can be useful) +target_link_libraries(hypersnakuscules + ${CUDA_cufft_LIBRARY} + ${CUDA_cublas_LIBRARY} + ${OpenCV_LIBS} + ${CMAKE_THREAD_LIBS_INIT} + ) + + +message("copying data, it may take some time") +file(COPY ../../data/3d_dataset DESTINATION .) + -- libgit2 0.21.4