Skip to content
Snippets Groups Projects
Commit 65d25f8e authored by cmaffeo2's avatar cmaffeo2
Browse files

Fix indentation for CMake

parent f45995af
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,10 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) ...@@ -4,10 +4,10 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
set(USE_CUDA ON) set(USE_CUDA ON)
if(USE_CUDA) if(USE_CUDA)
# set the project name and version # set the project name and version
project(arbd VERSION 1.2 LANGUAGES CXX CUDA) project(arbd VERSION 1.2 LANGUAGES CXX CUDA)
else(USE_CUDA) else(USE_CUDA)
project(arbd VERSION 1.2 LANGUAGES CXX) project(arbd VERSION 1.2 LANGUAGES CXX)
endif() endif()
# specify the C++ standard # specify the C++ standard
...@@ -21,13 +21,13 @@ option(USE_NCCL "Use NCCL for single node GPU peer communication" ON) ...@@ -21,13 +21,13 @@ option(USE_NCCL "Use NCCL for single node GPU peer communication" ON)
# configure_file(TutorialConfig.h.in TutorialConfig.h) # configure_file(TutorialConfig.h.in TutorialConfig.h)
message(STATUS "USE_CUDA: ${USE_CUDA}") message(STATUS "USE_CUDA: ${USE_CUDA}")
if(USE_CUDA) if(USE_CUDA)
add_definitions(-DUSE_CUDA) add_definitions(-DUSE_CUDA)
## CUDA_INCLUDE_DIRS wasn't getting set on my system with cmake 3.14.1, so check if in env ## CUDA_INCLUDE_DIRS wasn't getting set on my system with cmake 3.14.1, so check if in env
if(DEFINED ENV{CUDA_INCLUDE_DIRS}) if(DEFINED ENV{CUDA_INCLUDE_DIRS})
set(CUDA_INCLUDE_DIRS $ENV{CUDA_INCLUDE_DIRS}) set(CUDA_INCLUDE_DIRS $ENV{CUDA_INCLUDE_DIRS})
endif() endif()
message(STATUS "CUDA_INC: ${CUDA_INCLUDE_DIRS}") message(STATUS "CUDA_INC: ${CUDA_INCLUDE_DIRS}")
include_directories(${CUDA_INCLUDE_DIRS}) include_directories(${CUDA_INCLUDE_DIRS})
endif() endif()
## Two lines below needed? ## Two lines below needed?
...@@ -46,42 +46,42 @@ set(CMAKE_MACOSX_RPATH 1) # Unsure if this works for CMAKE_BUIlD_RPATH, or just ...@@ -46,42 +46,42 @@ set(CMAKE_MACOSX_RPATH 1) # Unsure if this works for CMAKE_BUIlD_RPATH, or just
set(CMAKE_BUILD_RPATH "${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES}") set(CMAKE_BUILD_RPATH "${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES}")
add_executable(arbd arbd.cpp add_executable(arbd arbd.cpp
Configuration.cpp Configuration.cpp
FlowForce.cpp FlowForce.cpp
GPUManager.cpp GPUManager.cpp
Scatter.cpp Scatter.cpp
SignalManager.cpp SignalManager.cpp
WKFUtils.cpp WKFUtils.cpp
Angle.cu Angle.cu
BaseGrid.cu BaseGrid.cu
BrownianParticle.cu BrownianParticle.cu
BrownianParticleType.cpp BrownianParticleType.cpp
RigidBodyController.cu RigidBodyController.cu
RigidBody.cu RigidBody.cu
RigidBodyGrid.cu RigidBodyGrid.cu
RigidBodyType.cu RigidBodyType.cu
CellDecomposition.cu CellDecomposition.cu
ComputeForce.cuh ComputeForce.cuh
ComputeForce.cu ComputeForce.cu
ComputeGridGrid.cuh ComputeGridGrid.cuh
ComputeGridGrid.cu ComputeGridGrid.cu
CudaUtil.cu CudaUtil.cu
CudaUtil.cuh CudaUtil.cuh
Dihedral.cu Dihedral.cu
Exclude.cu Exclude.cu
GrandBrownTown.cu GrandBrownTown.cu
GrandBrownTown.cuh GrandBrownTown.cuh
imd.cpp imd.cpp
vmdsock.cpp vmdsock.cpp
JamesBond.cu JamesBond.cu
RandomCUDA.cu RandomCUDA.cu
Reservoir.cu Reservoir.cu
TabulatedAngle.cu TabulatedAngle.cu
TabulatedDihedral.cu TabulatedDihedral.cu
TabulatedMethods.cuh TabulatedMethods.cuh
TabulatedPotential.cu TabulatedPotential.cu
useful.cu useful.cu
) )
target_link_libraries(arbd PRIVATE curand) target_link_libraries(arbd PRIVATE curand)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment