move md5 tests to md5/tests/

This commit is contained in:
ziplantil 2024-05-08 21:54:04 +03:00
parent 9c1f6e4b73
commit 3a0ec74460
4 changed files with 16 additions and 13 deletions

View File

@ -5,3 +5,7 @@ set(CPPS
set(PLATFORMCPPS)
add_library(md5 STATIC ${HEADERS} ${CPPS} ${PLATFORMCPPS})
if(BUILD_TESTING)
add_subdirectory(tests)
endif()

12
md5/tests/CMakeLists.txt Normal file
View File

@ -0,0 +1,12 @@
add_executable(
md5_tests
../md5.cpp
md5_tests.cpp
)
target_link_libraries(
md5_tests
GTest::gtest_main
)
target_include_directories(md5_tests PRIVATE ${PROJECT_SOURCE_DIR}/md5 ${PROJECT_SOURCE_DIR}/lib)
gtest_discover_tests(md5_tests)

View File

@ -9,16 +9,3 @@ target_link_libraries(
target_include_directories(byteswap_tests PRIVATE ${PROJECT_SOURCE_DIR}/lib)
gtest_discover_tests(byteswap_tests)
add_executable(
md5_tests
../md5/md5.cpp
md5_tests.cpp
)
target_link_libraries(
md5_tests
GTest::gtest_main
)
target_include_directories(md5_tests PRIVATE ${PROJECT_SOURCE_DIR}/md5 ${PROJECT_SOURCE_DIR}/lib)
gtest_discover_tests(md5_tests)