include(GoogleTest) # provides gtest_discover_tests

set(test TestMinimizers)

file(GLOB source_files *.cpp)

add_executable(${test} ${source_files} ${CMAKE_SOURCE_DIR}/Tests/GTestWrapper/TestAll.cpp)
target_link_libraries(${test} BornAgainFit gtest)

gtest_discover_tests(${test} DISCOVERY_TIMEOUT 300 TEST_PREFIX Functional.Fit.)
