Commit 547f6b985457cf9ea3afcec70ecefbcb8946b324

Authored by Mahsa Lotfollahi
0 parents

first commit

Showing 1 changed file with 50 additions and 0 deletions   Show diff stats
CMakeLists.txt 0 → 100644
  1 +++ a/CMakeLists.txt
  1 +#Specify the minimum CMake version
  2 +cmake_minimum_required(VERSION 2.8)
  3 +
  4 +#Specify the name of the project
  5 +project(hypersnakuscules)
  6 +
  7 +
  8 +#set the module directory
  9 +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
  10 +
  11 +#find OpenCV
  12 +find_package(OpenCV REQUIRED )
  13 +
  14 +#find the STIM library
  15 +find_package(STIM)
  16 +
  17 +#find the CUDA libraries
  18 +find_package(CUDA REQUIRED)
  19 +
  20 +
  21 +#build the executable in the binary directory on MS Visual Studio
  22 +if ( MSVC )
  23 + SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}")
  24 + SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}")
  25 +endif ( MSVC )
  26 +
  27 +
  28 +#Specify the CUDA include directories for the project
  29 +include_directories(
  30 + ${STIM_INCLUDE_DIRS}
  31 + ${CUDA_INCLUDE_DIRS}
  32 + )
  33 +
  34 +#create an executable from the given CUDA files
  35 +cuda_add_executable(hypersnakuscules
  36 + main.cu
  37 + )
  38 +
  39 +#specify any additional libraries here (CUFFT and CUBLAS can be useful)
  40 +target_link_libraries(hypersnakuscules
  41 + ${CUDA_cufft_LIBRARY}
  42 + ${CUDA_cublas_LIBRARY}
  43 + ${OpenCV_LIBS}
  44 + ${CMAKE_THREAD_LIBS_INIT}
  45 + )
  46 +
  47 +
  48 +message("copying data, it may take some time")
  49 +file(COPY ../../data/3d_dataset DESTINATION .)
  50 +
... ...