CMakeLists.txt 566 B

12345678910111213141516171819202122232425262728
  1. # include(FetchContent)
  2. # FetchContent_Declare(
  3. # googletest
  4. # GIT_REPOSITORY https://github.com/google/googletest.git
  5. # GIT_TAG release-1.12.1
  6. # )
  7. # set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
  8. # FetchContent_MakeAvailable(googletest)
  9. enable_testing()
  10. add_executable(
  11. Elleptic_integralsTest
  12. Elleptic_integralsTest.cpp
  13. )
  14. target_link_libraries(
  15. Elleptic_integralsTest
  16. GTest::gtest_main
  17. )
  18. target_include_directories(Elleptic_integralsTest PUBLIC ${PROJECT_SOURCE_DIR})
  19. include(GoogleTest)
  20. gtest_discover_tests(Elleptic_integralsTest)