Only link static tests to libcuda if WITH_PTX defined