25 lines
722 B
CMake
25 lines
722 B
CMake
include(GoogleTest)
|
|
|
|
set(DRAMSYS_TEST_RESOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/resources")
|
|
|
|
option(DRAMSYS_USE_FETCH_CONTENT_GOOGLE_TEST "Enable FetchContent to provide Google Test" ${DRAMSYS_USE_FETCH_CONTENT})
|
|
|
|
if (DRAMSYS_USE_FETCH_CONTENT)
|
|
if (DRAMSYS_USE_FETCH_CONTENT_GOOGLE_TEST)
|
|
FetchContent_Declare(
|
|
GTest
|
|
URL https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz
|
|
OVERRIDE_FIND_PACKAGE
|
|
)
|
|
|
|
FetchContent_MakeAvailable(GTest)
|
|
endif()
|
|
endif()
|
|
|
|
find_package(GTest REQUIRED)
|
|
|
|
add_subdirectory(tests_configuration)
|
|
add_subdirectory(tests_dramsys)
|
|
add_subdirectory(tests_regression)
|
|
add_subdirectory(tests_simulator)
|