VS2019下安装NumCpp库

VS2019下安装NumCpp库

Boost C++库的下载安装

https://blog.csdn.net/weixin_49643423/article/details/107873833

NumCpp的下载安装

  1. https://github.com/dpilger26/NumCpp,下载或克隆

  2. 打开cmd,运行下述代码

    >> mkdir build
    >> cd build
    >> cmake ..
    
  3. 再次打开cmd,但是需要提供管理员权限,运行下述代码

    >> cmake --build . --target install
    
  4. 运行过程中,能够看到安装目录,即C:\Program Files (x86)\NumCpp

  5. 完毕

注:若想修改安装目录,可在CMakeLists.txt文件中添加SET(CMAKE_INSTALL_PREFIX “E:/NumCpp”)。

VS的配置

分别点击

调试->调试属性->VC++目录

你可以在右框中找到包含目录,添加C:\Program Files (x86)\NumCpp目录。

猜你喜欢

转载自blog.csdn.net/weixin_49643423/article/details/107873839