Do not build tests from build script.

This commit is contained in:
2021-10-13 21:05:18 +01:00
parent 0ac6d8dd24
commit 6493e9bda8
2 changed files with 22 additions and 18 deletions

View File

@@ -1,3 +1,7 @@
if("${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW" OR "${AARU_BUILD_PACKAGE}" MATCHES 1)
return()
endif()
# 'Google_test' is the subproject name
project(tests)
@@ -11,4 +15,4 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/random
# 'Google_Tests_run' is the target name
# 'test1.cpp tests2.cpp' are source files with tests
add_executable(tests_run adler32.cpp crc16.cpp crc16_ccitt.cpp crc32.cpp crc64.cpp fletcher16.cpp fletcher32.cpp spamsum.cpp)
target_link_libraries(tests_run gtest gtest_main "Aaru.Checksums.Native")
target_link_libraries(tests_run gtest gtest_main "Aaru.Checksums.Native")