Skip to content
Snippets Groups Projects
Commit 4d56c223 authored by Matteo Cicuttin's avatar Matteo Cicuttin
Browse files

Fixed compilation without GPU.

parent a8d8d817
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,9 @@ if (OPT_ENABLE_GPU_SOLVER)
add_library(gmshdg SHARED ${LIBGMSHDG_SOURCES})
target_link_libraries(gmshdg ${LINK_LIBS})
endif()
else()
add_library(gmshdg SHARED ${LIBGMSHDG_SOURCES})
target_link_libraries(gmshdg ${LINK_LIBS})
endif()
......@@ -309,31 +312,34 @@ if (OPT_ENABLE_GPU_SOLVER)
add_executable(maxwell_solver ${MAXWELL_SOURCES})
target_link_libraries(maxwell_solver gmshdg)
endif()
else()
add_executable(maxwell_solver ${MAXWELL_SOURCES})
target_link_libraries(maxwell_solver gmshdg)
endif()
########## tests
option(OPT_BUILD_TESTS "Build tests" OFF)
if (OPT_BUILD_TESTS)
add_executable(test_basics tests/test_basics.cpp)
target_link_libraries(test_basics gmshdg)
target_link_libraries(test_basics gmshdg ${LINK_LIBS})
add_executable(test_mass tests/test_mass.cpp)
target_link_libraries(test_mass gmshdg)
target_link_libraries(test_mass gmshdg ${LINK_LIBS})
add_executable(test_differentiation tests/test_differentiation.cpp)
target_link_libraries(test_differentiation gmshdg)
target_link_libraries(test_differentiation gmshdg ${LINK_LIBS})
add_executable(test_lifting tests/test_lifting.cpp)
target_link_libraries(test_lifting gmshdg)
target_link_libraries(test_lifting gmshdg ${LINK_LIBS})
if (OPT_ENABLE_GPU_SOLVER)
add_executable(test_differentiation_gpu tests/test_differentiation_gpu.cpp)
target_link_libraries(test_differentiation_gpu gmshdg)
target_link_libraries(test_differentiation_gpu gmshdg ${LINK_LIBS})
add_executable(profile_differentiation_gpu tests/profile_differentiation_gpu.cpp)
target_link_libraries(profile_differentiation_gpu gmshdg)
target_link_libraries(profile_differentiation_gpu gmshdg ${LINK_LIBS})
add_executable(test_lifting_gpu tests/test_lifting_gpu.cpp)
target_link_libraries(test_lifting_gpu gmshdg)
target_link_libraries(test_lifting_gpu gmshdg ${LINK_LIBS})
endif()
endif()
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