mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Set up basic tests with gtest
This commit is contained in:
14
test/CMakeLists.txt
Normal file
14
test/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
find_package(GTest REQUIRED)
|
||||
include_directories(${GTEST_INCLUDE_DIRS})
|
||||
|
||||
add_executable(test_dense layers/test_dense.cpp)
|
||||
|
||||
add_library(test_utils
|
||||
test_utils/test_cublas_fixture.cpp
|
||||
)
|
||||
|
||||
target_include_directories(test_utils PUBLIC test_utils)
|
||||
|
||||
target_link_libraries(test_dense gtest gtest_main CUDANet test_utils)
|
||||
|
||||
add_test(NAME TestDense COMMAND test_dense)
|
||||
Reference in New Issue
Block a user