mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
bdf9adc0e8
This reverts commit 45ec66e976
.
21 lines
543 B
CMake
21 lines
543 B
CMake
message (STATUS "Testing is enabled.")
|
|
enable_testing()
|
|
|
|
find_package(GoogleTest REQUIRED)
|
|
include(GoogleTest)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
if(APPLE)
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True)
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)
|
|
set(CMAKE_INSTALL_RPATH "@executable_path")
|
|
endif()
|
|
|
|
add_custom_target(conncpp_tests
|
|
${CMAKE_COMMAND} -E copy $<TARGET_FILE:MariaDB::ConnCpp> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
|
|
|
# Add the subdirectories
|
|
add_subdirectory(dCommonTests)
|
|
add_subdirectory(dGameTests)
|