mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Add unit tests.
This commit is contained in:
14
tests/CMakeLists.txt
Normal file
14
tests/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# '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
|
||||
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/random)
|
||||
|
||||
# 'Google_Tests_run' is the target name
|
||||
# 'test1.cpp tests2.cpp' are source files with tests
|
||||
add_executable(tests_run crc32.cpp)
|
||||
target_link_libraries(tests_run gtest gtest_main "Aaru.Checksums.Native")
|
||||
Reference in New Issue
Block a user