39 lines
1.5 KiB
CMake
39 lines
1.5 KiB
CMake
project(Google_Tests)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
# 'lib' is the folder with Google Test sources
|
|
add_subdirectory(lib)
|
|
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR} libnpy/include)
|
|
|
|
# 'Google_Tests_run' is the target name
|
|
# 'test1.cpp test2.cpp' are source files with tests
|
|
add_executable(Google_Tests_run
|
|
test_helpers.cpp
|
|
test1.cpp
|
|
test2.cpp
|
|
test3.cpp
|
|
test4.cpp
|
|
)
|
|
|
|
file(COPY test1/data1.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test1)
|
|
file(COPY test1/iir_t1_a.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test1)
|
|
file(COPY test1/iir_t1_b.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test1)
|
|
file(COPY test1/iir_t1_x.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test1)
|
|
file(COPY test1/iir_t1_y.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test1)
|
|
|
|
file(COPY test2/ssf_t2_acc.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test2)
|
|
file(COPY test2/ssf_t2_y_ref.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test2)
|
|
|
|
file(COPY test3/ssf_t3_acc.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test3)
|
|
|
|
file(COPY test4/step_150a.npy DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test4)
|
|
|
|
target_link_libraries(Google_Tests_run pasada)
|
|
#target_include_directories(Google_Tests_run PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/pasada-lib/include")
|
|
|
|
target_link_libraries(Google_Tests_run gtest gtest_main)
|
|
#target_link_libraries(Google_Tests_run PRIVATE Pasada_Lib)
|
|
|
|
target_include_directories(Google_Tests_run PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../pasada-lib/include")
|