mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-05 07:02:13 +00:00
20 lines
490 B
CMake
20 lines
490 B
CMake
set(DNETTESTS_SOURCES
|
|
"PacketTests.cpp"
|
|
)
|
|
|
|
# Set our executable
|
|
add_executable(dNetTests ${DNETTESTS_SOURCES})
|
|
|
|
# Needs to be in binary dir for ctest
|
|
if(APPLE)
|
|
add_custom_target(dNetTestsLink
|
|
${CMAKE_COMMAND} -E copy $<TARGET_FILE:MariaDB::ConnCpp> ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
add_dependencies(dNetTests dNetTestsLink)
|
|
endif()
|
|
|
|
# Link needed libraries
|
|
target_link_libraries(dNetTests ${COMMON_LIBRARIES} GTest::gtest_main dNet)
|
|
|
|
# Discover the tests
|
|
gtest_discover_tests(dNetTests) |