Debian Codegraph @

unit_test/solver/CMakeLists.txt

raw
1 add_executable(unittest_solver
2 sparse_system_helper.cpp sparse_system_helper.h
3 allocate_algorithm_test.cpp
4 linear_solver_test.cpp
5 )
6
7 # setting up linking of the test based on the available solvers
8 set(SOLVER_LIBRARIES solver_eigen solver_dense solver_pcg solver_structure_only)
9 if(G2O_BUILD_SLAM2D_TYPES)
10 list(APPEND SOLVER_LIBRARIES solver_slam2d_linear)
11 endif()
12 if(CHOLMOD_FOUND)
13 list(APPEND SOLVER_LIBRARIES solver_cholmod)
14 endif()
15 if(CSPARSE_FOUND)
16 list(APPEND SOLVER_LIBRARIES solver_csparse)
17 endif()
18
19 target_link_libraries(unittest_solver ${SOLVER_LIBRARIES})
20 create_test(unittest_solver)