mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-06 15:28:39 +00:00
Add comprehensive packet test framework with 14 tests covering packet serialization/deserialization
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
20
tests/dNetTests/CMakeLists.txt
Normal file
20
tests/dNetTests/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
Reference in New Issue
Block a user