CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728
  1. cmake_minimum_required(VERSION 3.15)
  2. project(scattnlay_tests C CXX)
  3. # -- Dependency (Google Test)
  4. find_package(GTest REQUIRED)
  5. include_directories(${GTEST_INCLUDE_DIRS})
  6. set(LIBS ${LIBS} ${GTEST_LIBRARIES})
  7. set(LIBS ${LIBS} pthread)
  8. # -- Output tests in directory
  9. add_executable("test_bulk_sphere" test_bulk_sphere.cc)
  10. target_link_libraries("test_bulk_sphere" ${LIBS})
  11. add_test(NAME "test_bulk_sphere"
  12. COMMAND "test_bulk_sphere")
  13. #add_executable("test_bulk_sphere_multi_precision" test_bulk_sphere.cc)
  14. #target_compile_options("test_bulk_sphere_multi_precision"
  15. # PRIVATE -DMULTI_PRECISION=100)
  16. #target_link_libraries("test_bulk_sphere_multi_precision" ${LIBS})
  17. #add_test(NAME "test_bulk_sphere_multi_precision"
  18. # COMMAND "test_bulk_sphere_multi_precision")
  19. add_executable("test_Riccati_Bessel_logarithmic_derivative"
  20. test_Riccati_Bessel_logarithmic_derivative.cc)
  21. target_link_libraries("test_Riccati_Bessel_logarithmic_derivative" ${LIBS})
  22. add_test(NAME "test_Riccati_Bessel_logarithmic_derivative"
  23. COMMAND "test_Riccati_Bessel_logarithmic_derivative")