mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
c3e0102a4f
Implementing byteswap functions by using "backported" from C++23 std::byteswap. Adding unittests based on GoogleTests. To enable it add `-DBUILD_TESTING=ON` to cmake.
12 lines
233 B
CMake
12 lines
233 B
CMake
add_executable(
|
|
byteswap_tests
|
|
byteswap_tests.cpp
|
|
)
|
|
target_link_libraries(
|
|
byteswap_tests
|
|
GTest::gtest_main
|
|
)
|
|
target_include_directories(byteswap_tests PRIVATE ${PROJECT_SOURCE_DIR}/lib)
|
|
|
|
gtest_discover_tests(byteswap_tests)
|