$ export -p # 显示当下所有的环境变量
$ export PATH=$PATH:/marvell-tools-265.0/bin
$ export -p # 确认是环境变量是否导入成功
$ mkdir build && cd build
$ cmake cmake -DCMAKE_CXX_COMPILER=/marvell-tools-265.0/bin/aarch64-marvell-linux-gnu-g++ ..
$ make
#include <iostream>
int main(int argc, char *argv[])
{
std::cout << "Hello CMake!" << std::endl;
return 0;
}
# Set the minimum version of CMake that can be used
# To find the cmake version run
# $ cmake --version
cmake_minimum_required(VERSION 3.5)
# Set the project name
project (hello_cmake)
# Add an executable
add_executable(hello_cmake main.cpp)