commit 48f9dfc29741322f36799f65716dc32d22dd6d18 Author: zhangzhuo Date: Mon Mar 21 10:59:55 2022 +0800 first commit diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6a1a7e9 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +# CMakeList.txt: 顶层 CMake 项目文件,在此处执行全局配置 +# 并包含子项目。 +# +cmake_minimum_required (VERSION 3.8) + +project ("IRIS_FODIS") + +# 包含子项目。 +add_subdirectory ("IRIS_FODIS") diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 0000000..ef8d6db --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,34 @@ +{ + "configurations": [ + { + "name": "Linux-GCC-Debug", + "generator": "Unix Makefiles", + "configurationType": "Debug", + "cmakeExecutable": "/opt/cmake/bin/cmake", + "remoteCopySourcesExclusionList": [ ".vs", ".git", "out" ], + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "linux_arm" ], + "intelliSenseMode": "linux-gcc-arm", + "remoteMachineName": "243120617;172.16.0.232 (username=root, port=22, authentication=Password)", + "remoteCMakeListsRoot": "/home/pi/FODIS/src", + "remoteBuildRoot": "/home/pi/FODIS/build_d/${name}", + "remoteInstallRoot": "/home/pi/FODIS/out/install/${name}", + "remoteCopySources": true, + "rsyncCommandArgs": "-t --delete --delete-excluded", + "remoteCopyBuildOutput": true, + "remoteCopySourcesMethod": "sftp" + }, + { + "name": "x64-Debug", + "generator": "Ninja", + "configurationType": "Debug", + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "msvc_x64_x64" ] + } + ] +} \ No newline at end of file diff --git a/IRIS_FODIS/CMakeLists.txt b/IRIS_FODIS/CMakeLists.txt new file mode 100644 index 0000000..204b9e6 --- /dev/null +++ b/IRIS_FODIS/CMakeLists.txt @@ -0,0 +1,9 @@ +# CMakeList.txt: IRIS_FODIS 的 CMake 项目,在此处包括源代码并定义 +# 项目特定的逻辑。 +# +cmake_minimum_required (VERSION 3.8) + +# 将源代码添加到此项目的可执行文件。 +add_executable (IRIS_FODIS "IRIS_FODIS.cpp" "IRIS_FODIS.h") + +# TODO: 如有需要,请添加测试并安装目标。 diff --git a/IRIS_FODIS/IRIS_FODIS.cpp b/IRIS_FODIS/IRIS_FODIS.cpp new file mode 100644 index 0000000..d2f294a --- /dev/null +++ b/IRIS_FODIS/IRIS_FODIS.cpp @@ -0,0 +1,12 @@ +// IRIS_FODIS.cpp: 定义应用程序的入口点。 +// + +#include "IRIS_FODIS.h" + +using namespace std; + +int main() +{ + cout << "Hello CMake." << endl; + return 0; +} diff --git a/IRIS_FODIS/IRIS_FODIS.h b/IRIS_FODIS/IRIS_FODIS.h new file mode 100644 index 0000000..63cf503 --- /dev/null +++ b/IRIS_FODIS/IRIS_FODIS.h @@ -0,0 +1,8 @@ +// IRIS_FODIS.h: 标准系统包含文件的包含文件 +// 或项目特定的包含文件。 + +#pragma once + +#include + +// TODO: 在此处引用程序需要的其他标头。 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29