Файл /Структура папки < /p>
Код: Выделить всё
ProjectDIR
|
+-- CMakeLists.txt
+-- test.cxx
+-- testConfig.h.in
+-- thirdParty
|
+-- armadillo
|
+-- include
+-- lib_win64
< /code>
test.cxx
#include
#include
#include "testConfig.h"
int main()
{
arma::mat A = {{1.0, 2.0, 3.0},{4.0, 5.0, 6.0},{7.0, 8.0, 9.0}};
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79140937/linking-to-armadillo-with-cmake[/url]
Мобильная версия