if (NOT WIN32)
    add_executable(test_hardcoding test_hardcoding.cpp)
    target_link_libraries(test_hardcoding sphericart)
    target_compile_features(test_hardcoding PRIVATE cxx_std_17)
endif()

add_executable(test_samples test_samples.cpp)
target_link_libraries(test_samples sphericart)
target_compile_features(test_samples PRIVATE cxx_std_17)

add_executable(test_derivatives test_derivatives.cpp)
target_link_libraries(test_derivatives sphericart)
target_compile_features(test_derivatives PRIVATE cxx_std_17)

if (SPHERICART_ENABLE_SYCL)
     add_executable(test_derivatives_sycl test_derivatives_sycl.cpp)
     target_link_libraries(test_derivatives_sycl sphericart)
     target_compile_features(test_derivatives_sycl PRIVATE cxx_std_17)
endif()

if (NOT WIN32)
    add_test(NAME test_hardcoding COMMAND ./test_hardcoding)
endif()
add_test(NAME test_samples COMMAND ./test_samples)
add_test(NAME test_derivatives COMMAND ./test_derivatives)
if (SPHERICART_ENABLE_SYCL)
     add_test(NAME test_derivatives_sycl COMMAND ./test_derivatives_sycl)
endif()
