Files
libaaruformat/tests/CMakeLists.txt

21 lines
738 B
CMake
Raw Normal View History

2022-05-28 11:41:19 +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
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
2022-05-28 13:38:09 +01:00
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/flac.flac
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/audio.bin
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
2022-05-28 11:41:19 +01:00
# 'Google_Tests_run' is the target name
# 'test1.cpp tests2.cpp' are source files with tests
2022-05-28 13:38:09 +01:00
add_executable(tests_run crc64.cpp spamsum.cpp crc32.c crc32.h flac.cpp)
2022-05-28 11:41:19 +01:00
target_link_libraries(tests_run gtest gtest_main "aaruformat")