Files
Aaru.Checksums.Native/tests/CMakeLists.txt

19 lines
697 B
CMake
Raw Normal View History

2024-04-30 15:12:48 +01:00
if ("${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW" OR "${AARU_BUILD_PACKAGE}" MATCHES 1)
return()
endif ()
2021-10-13 21:05:18 +01:00
2021-10-05 01:58:31 +01:00
# 'Google_test' is the subproject name
project(tests)
# 'lib' is the folder with Google Test sources
add_subdirectory(lib)
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/random
2024-04-30 15:12:48 +01:00
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
2021-10-05 01:58:31 +01:00
# 'Google_Tests_run' is the target name
# 'test1.cpp tests2.cpp' are source files with tests
2021-10-05 04:38:55 +01:00
add_executable(tests_run adler32.cpp crc16.cpp crc16_ccitt.cpp crc32.cpp crc64.cpp fletcher16.cpp fletcher32.cpp spamsum.cpp)
2021-10-13 21:05:18 +01:00
target_link_libraries(tests_run gtest gtest_main "Aaru.Checksums.Native")