cmake_minimum_required(VERSION 3.10)

# collect all of the test sources
file(GLOB test_source "${CMAKE_SOURCE_DIR}/tests/ctests/*.cpp")

# setup test executable
add_executable(runALETests ${test_source})
target_link_libraries(runALETests ale ${GSL_LIBRARIES} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)

target_include_directories(runALETests
                           PRIVATE
                           ${GSL_INCLUDE_DIRS}
                           PUBLIC
                           ${ALE_INCLUDE_DIRS})


gtest_discover_tests(runALETests WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests)
