include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) add_executable(${NAME}_cuda_tests test_potential.cu test_forces.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" )