当前位置: 首页 > 工具软件 > NumCpp > 使用案例 >

Ubuntu 安装 NumCpp

陆臻
2023-12-01

Ubuntu 安装 NumCpp

clone 项目

git clone https://gitee.com/l565353780l/NumCpp.git

编译 NumCpp

cd <path-to-NumCpp-folder>
mkdir build
cd build
mkdir installed
cmake -DCMAKE_INSTALL_PREFIX=./installed ..
make install

编译自己的项目

set(NumCpp_DIR "<path-to-NumCpp-installed-folder>/share/NumCpp/cmake")
find_package(NumCpp REQUIRED)
target_link_libraries(${PROJECT_NAME}
    NumCpp::NumCpp
)

尽情享用吧

 类似资料: