环境 Deepin
下载安装
sudo apt-get install libmlpack-dev
sudo apt-get install libboost-all-dev # mlpack依赖Boost
创建工程mlpack_test
…
编写 CMakeLists.txt
cmake_minimum_required(VERSION 3.0.0)
project(mlpack_test)
set(CMAKE_CXX_STANDARD 11)
include_directories(mlpack)
add_executable(mlpack_test main.cpp)
target_link_libraries(mlpack_test mlpack)