Skip to content

Commit

Permalink
All the .cuh CUDA header files are moved to the conditional if(GPU_CU…
Browse files Browse the repository at this point in the history
…DA_ON)

Signed-off-by: ViNN280801 <vladislav_semykin01@mail.ru>
  • Loading branch information
ViNN280801 committed Dec 10, 2024
1 parent a990410 commit 9090d58
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,12 @@ include_directories(
${CMAKE_SOURCE_DIR}/include/FiniteElementMethod/Cubature

${CMAKE_SOURCE_DIR}/include/Generators
${CMAKE_SOURCE_DIR}/include/Generators/CUDA
${CMAKE_SOURCE_DIR}/include/Generators/Host

${CMAKE_SOURCE_DIR}/include/Geometry
${CMAKE_SOURCE_DIR}/include/Geometry/CUDA


${CMAKE_SOURCE_DIR}/include/Particle
${CMAKE_SOURCE_DIR}/include/Particle/CUDA

${CMAKE_SOURCE_DIR}/include/Particle/PhysicsCore
${CMAKE_SOURCE_DIR}/include/Particle/PhysicsCore/CollisionModel

Expand All @@ -667,9 +665,20 @@ include_directories(
${CMAKE_SOURCE_DIR}/include/SessionManagement

${CMAKE_SOURCE_DIR}/include/Utilities
${CMAKE_SOURCE_DIR}/include/Utilities/CUDA
)

if (GPU_CUDA_ON)
include_directories(
${CMAKE_SOURCE_DIR}/include/Generators/CUDA

${CMAKE_SOURCE_DIR}/include/Geometry/CUDA

${CMAKE_SOURCE_DIR}/include/Particle/CUDA

${CMAKE_SOURCE_DIR}/include/Utilities/CUDA
)
endif()

add_subdirectory(src)

set(CPP_SOURCES src/main.cpp src/ModelingMainDriver.cpp)
Expand Down

0 comments on commit 9090d58

Please sign in to comment.