diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-14 14:49:46 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-14 14:49:46 +0300 |
| commit | 7db0d82731ababdf0b2f4d986dd54da3b4650954 (patch) | |
| tree | 145564ba45b9ae74a7eeebc319027c730c7177bc /CMakeLists.txt | |
| parent | 5ac9489c079f3f1a0ba1d2d8385001ada83a13b8 (diff) | |
Add triangular solve
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c0a79d5..54f9d5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ add_library(linear_algebra src/vector.cpp src/matrix.cpp src/norms.cpp + src/triangular_solve.cpp ) add_library(linear_algebra::core ALIAS linear_algebra) @@ -52,12 +53,18 @@ elseif(MSVC) endif() if(LINEAR_ALGEBRA_BUILD_EXAMPLES) - add_executable(solve_linear_system examples/solve_linear_system.cpp) - target_link_libraries(solve_linear_system PRIVATE linear_algebra::core) + add_executable(linear_system examples/linear_system.cpp) + target_link_libraries(linear_system PRIVATE linear_algebra::core) + + add_executable(matmul examples/matmul.cpp) + target_link_libraries(matmul PRIVATE linear_algebra::core) endif() if(LINEAR_ALGEBRA_BUILD_TESTS) include(FetchContent) +endif() + +if(LINEAR_ALGEBRA_BUILD_TESTS) FetchContent_Declare( Catch2 @@ -72,6 +79,7 @@ if(LINEAR_ALGEBRA_BUILD_TESTS) add_executable(linear_algebra_tests tests/test_vector.cpp tests/test_matrix.cpp + tests/test_triangular_solve.cpp ) target_link_libraries(linear_algebra_tests |