tCMakeLists.txt - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       tCMakeLists.txt (835B)
       ---
            1 # Create input/output folders
            2 file(MAKE_DIRECTORY input)
            3 file(MAKE_DIRECTORY output)
            4 file(MAKE_DIRECTORY img_out)
            5 file(MAKE_DIRECTORY gnuplot/data)
            6 
            7 # The name of the project.
            8 project(sphere_CUDA)
            9 
           10 # CMake minimum version required
           11 cmake_minimum_required(VERSION 3.0)
           12 
           13 # Find CUDA
           14 find_package(CUDA REQUIRED)
           15 
           16 # Set CUDA GPU generation
           17 # 0: Fermi
           18 # 1: Kepler
           19 # 2: Ampere
           20 set(GPU_GENERATION 2)
           21 
           22 # Find OpenMP
           23 find_package(OpenMP)
           24 
           25 # Find Boost components
           26 #find_package(Boost COMPONENTS system filesystem unit_test_framework REQUIRED)
           27 
           28 # Uncomment to enable testing
           29 enable_testing()
           30 
           31 # Set build type = Debug
           32 #set(CMAKE_BUILD_TYPE Debug)
           33 #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-g -G)
           34 
           35 # Set build type = Release
           36 set(CMAKE_BUILD_TYPE Release)
           37 
           38 # Add source directory to project.
           39 add_subdirectory(src)
           40 
           41 # Add tests
           42 add_subdirectory(tests)