cudaCAC/tests/cuda_unit_tests/CMakeLists.txt
Alex Selimov d957a90573
Some checks failed
Build and Test / build-and-test (push) Failing after 5m4s
Cleanup code slightly and implement tests for CellList
2025-09-19 23:46:21 -04:00

19 lines
674 B
CMake

include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
add_executable(${NAME}_cuda_tests
test_potential.cu
test_forces.cu
test_kernel_config.cu
test_neighbor_list.cu
)
target_link_libraries(${NAME}_cuda_tests gtest gtest_main)
target_link_libraries(${NAME}_cuda_tests ${CMAKE_PROJECT_NAME}_cuda_lib)
add_test(NAME ${NAME}CudaTests COMMAND ${CMAKE_BINARY_DIR}/tests/cuda_unit_tests/${NAME}_cuda_tests)
# Add environment variables for NVIDIA GPU selection. Useful for facilitating testing on multi gpu
# systems
set_property(TEST ${NAME}CudaTests PROPERTY ENVIRONMENT
"__NV_PRIME_RENDER_OFFLOAD=1"
"__GLX_VENDOR_LIBRARY_NAME=nvidia"
)