Add TRIGDX prefix to CMake configurable options
This commit is contained in:
@@ -15,7 +15,7 @@ add_executable(test_lookup_avx test_lookup_avx.cpp)
|
||||
target_link_libraries(test_lookup_avx PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
|
||||
# MKL backend test
|
||||
if(USE_MKL)
|
||||
if(TRIGDX_USE_MKL)
|
||||
add_executable(test_mkl test_mkl.cpp)
|
||||
target_link_libraries(test_mkl PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
endif()
|
||||
@@ -23,17 +23,17 @@ endif()
|
||||
include(CTest)
|
||||
add_test(NAME test_lookup COMMAND test_lookup)
|
||||
|
||||
if(USE_MKL)
|
||||
if(TRIGDX_USE_MKL)
|
||||
add_test(NAME test_mkl COMMAND test_mkl)
|
||||
endif()
|
||||
|
||||
if(USE_GPU)
|
||||
if(TRIGDX_USE_GPU)
|
||||
add_executable(test_gpu test_gpu.cpp)
|
||||
target_link_libraries(test_gpu PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
add_test(NAME test_gpu COMMAND test_gpu)
|
||||
endif()
|
||||
|
||||
if(USE_XSIMD)
|
||||
if(TRIGDX_USE_XSIMD)
|
||||
add_executable(test_lookup_xsimd test_lookup_xsimd.cpp)
|
||||
target_link_libraries(test_lookup_xsimd PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
add_test(NAME test_lookup_xsimd COMMAND test_lookup_xsimd)
|
||||
|
||||
Reference in New Issue
Block a user