<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<pre class="elementToProof"><div style="font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">Package: libarmadillo-dev
Version: 14.2.3+dfsg-1
</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div style="font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">I am using Debian-13 trixie.</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">here is a minimal sample</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div style="font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">CMakeLists.txt</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div style="font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">'''</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">cmake_minimum_required(VERSION 3.15)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">set(APP_NAME armatest)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">project(${APP_NAME})</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"># https://cmake.org/cmake/help/latest/module/FindArmadillo.html</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">find_package(Armadillo CONFIG REQUIRED)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">target_include_directories(armatest PRIVATE ${ARMADILLO_INCLUDE_DIRS})</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">target_link_libraries(armatest PRIVATE ${ARMADILLO_LIBRARIES} openblas)</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">add_executable(armatest armatest.cpp)</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">'''</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">armatest.cpp</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">'''</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">#include <armadillo></div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">#include <iostream></div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">int main() {</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> arma::Mat<double> mat = arma : Mat<double>(4, 4, arma::randu);</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> std::cout << mat;</div><div class="elementToProof" style="line-height: 27px; white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">}</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">'''</div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">put CMakeLists.txt and armatest.cpp in the same folder, run <code>cmake</code></div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="white-space: normal; font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">then cmake would report Armadillo_CONFIG.cmake not found</div></pre>
<div style="font-family: "Calibri", "Helvetica", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
</body>
</html>