first commit
This commit is contained in:
9
CMakeLists.txt
Normal file
9
CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
# CMakeList.txt: 顶层 CMake 项目文件,在此处执行全局配置
|
||||
# 并包含子项目。
|
||||
#
|
||||
cmake_minimum_required (VERSION 3.8)
|
||||
|
||||
project ("IRIS_FODIS")
|
||||
|
||||
# 包含子项目。
|
||||
add_subdirectory ("IRIS_FODIS")
|
34
CMakeSettings.json
Normal file
34
CMakeSettings.json
Normal file
@ -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" ]
|
||||
}
|
||||
]
|
||||
}
|
9
IRIS_FODIS/CMakeLists.txt
Normal file
9
IRIS_FODIS/CMakeLists.txt
Normal file
@ -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: 如有需要,请添加测试并安装目标。
|
12
IRIS_FODIS/IRIS_FODIS.cpp
Normal file
12
IRIS_FODIS/IRIS_FODIS.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
// IRIS_FODIS.cpp: 定义应用程序的入口点。
|
||||
//
|
||||
|
||||
#include "IRIS_FODIS.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Hello CMake." << endl;
|
||||
return 0;
|
||||
}
|
8
IRIS_FODIS/IRIS_FODIS.h
Normal file
8
IRIS_FODIS/IRIS_FODIS.h
Normal file
@ -0,0 +1,8 @@
|
||||
// IRIS_FODIS.h: 标准系统包含文件的包含文件
|
||||
// 或项目特定的包含文件。
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
|
||||
// TODO: 在此处引用程序需要的其他标头。
|
Reference in New Issue
Block a user