25 lines
681 B
CMake
25 lines
681 B
CMake
enable_testing()
|
|
|
|
include(FetchContent)
|
|
|
|
## Project-wide setup
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
set(CMAKE_CXX_EXTENSIONS NO)
|
|
|
|
# Externally provided libraries
|
|
FetchContent_Declare(googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
GIT_TAG main)
|
|
|
|
FetchContent_Declare(googlebenchmark
|
|
GIT_REPOSITORY https://github.com/google/benchmark.git
|
|
GIT_TAG main)
|
|
|
|
FetchContent_MakeAvailable(
|
|
googletest
|
|
googlebenchmark)
|
|
|
|
add_executable(rublon-tests utilsTests.cpp rublonTests.cpp core_handler_tests.cpp init_test.cpp)
|
|
target_link_libraries(rublon-tests rublon-ssh GTest::gmock_main -lssl -lcrypto)
|