Only include test if opencl is found

This commit is contained in:
Tong Dong Qiu 2021-12-09 08:37:32 +01:00
parent bd9e13d4bd
commit aa5f36b835

View File

@ -148,7 +148,6 @@ list (APPEND TEST_SOURCE_FILES
tests/test_timer.cpp
tests/test_invert.cpp
tests/test_stoppedwells.cpp
tests/test_solvetransposed3x3.cpp
tests/test_relpermdiagnostics.cpp
tests/test_norne_pvt.cpp
tests/test_wellprodindexcalculator.cpp
@ -169,6 +168,7 @@ if(CUDA_FOUND)
endif()
if(OPENCL_FOUND)
list(APPEND TEST_SOURCE_FILES tests/test_openclSolver.cpp)
list(APPEND TEST_SOURCE_FILES tests/test_solvetransposed3x3.cpp)
endif()
list (APPEND TEST_DATA_FILES