Select device to use for tests in CMake