Skip to content
Snippets Groups Projects
Commit afe1a14f authored by pascal.tremblin's avatar pascal.tremblin
Browse files

add USE_CUDA in CXX_FLAGS

parent a27bfdd7
Branches
No related tags found
No related merge requests found
......@@ -67,10 +67,12 @@ INCLUDE_DIRECTORIES ( ./ ${Trilinos_INCLUDE_DIRS} ${Trilinos_TPL_INCLUDE_DIRS})
LINK_DIRECTORIES (${Trilinos_LIBRARY_DIRS} ${Trilinos_TPL_LIBRARY_DIRS})
option (USE_CUDA "if true MPI+CUDA (needs Trilinos with Cuda support), if false MPI+OpenMP" OFF)
message(STATUS "USE_CUDA enabled : ${USE_CUDA}")
IF (USE_CUDA)
ADD_DEFINITIONS(-DUSE_CUDA)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_CUDA")
ENDIF()
MACRO(ADD_TEST TEST_NAME)
ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cpp)
TARGET_LINK_LIBRARIES(${TEST_NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment