mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
8e84cafdfa
* feat: add configurable feature and versions to allow for easily swithing it out to enable features in the client for funsies tested that this doesn't break anything and added test * cleanup
26 lines
625 B
CMake
26 lines
625 B
CMake
set(DCOMMONTEST_SOURCES
|
|
"AMFDeserializeTests.cpp"
|
|
"Amf3Tests.cpp"
|
|
"HeaderSkipTest.cpp"
|
|
"TestCDFeatureGatingTable.cpp"
|
|
"TestLDFFormat.cpp"
|
|
"TestNiPoint3.cpp"
|
|
"TestEncoding.cpp"
|
|
"TestLUString.cpp"
|
|
"TestLUWString.cpp"
|
|
"dCommonDependencies.cpp"
|
|
)
|
|
|
|
# Set our executable
|
|
add_executable(dCommonTests ${DCOMMONTEST_SOURCES})
|
|
|
|
# Link needed libraries
|
|
target_link_libraries(dCommonTests ${COMMON_LIBRARIES} GTest::gtest_main)
|
|
|
|
# Copy test files to testing directory
|
|
add_subdirectory(TestBitStreams)
|
|
file(COPY ${TESTBITSTREAMS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
# Discover the tests
|
|
gtest_discover_tests(dCommonTests)
|