2024-01-05 19:10:48 +00:00
|
|
|
message (STATUS "Testing is enabled.")
|
2022-11-07 08:12:35 +00:00
|
|
|
enable_testing()
|
2022-07-16 23:24:16 +00:00
|
|
|
|
2024-01-05 19:10:48 +00:00
|
|
|
find_package(GoogleTest REQUIRED)
|
2022-11-07 08:12:35 +00:00
|
|
|
include(GoogleTest)
|
2022-07-20 04:51:05 +00:00
|
|
|
|
2024-01-05 19:59:52 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
|
2024-01-05 21:18:39 +00:00
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True)
|
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)
|
|
|
|
set(CMAKE_INSTALL_RPATH "@executable_path")
|
|
|
|
|
2024-01-05 19:59:52 +00:00
|
|
|
add_custom_target(conncpp_tests
|
|
|
|
${CMAKE_COMMAND} -E copy $<TARGET_FILE:MariaDB::ConnCpp> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
2022-07-20 04:51:05 +00:00
|
|
|
|
2022-11-07 08:12:35 +00:00
|
|
|
# Add the subdirectories
|
|
|
|
add_subdirectory(dCommonTests)
|
|
|
|
add_subdirectory(dGameTests)
|