From b69a5a14a9fe09c38ce8a3a65c5aeaa3af57819c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=AB=8B=E6=96=B0?= Date: Thu, 28 Oct 2021 13:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeSettings.json | 17 +++++++++++++++++ CmakeLists.txt | 11 +++++++++++ main.cpp | 10 ++++++++++ source/test/test.cpp | 0 source/test/test.h | 1 + 5 files changed, 39 insertions(+) create mode 100644 CMakeSettings.json create mode 100644 CmakeLists.txt create mode 100644 main.cpp create mode 100644 source/test/test.cpp create mode 100644 source/test/test.h diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 0000000..e8a8018 --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "x64-Debug", + "generator": "Ninja", + "configurationType": "Debug", + "inheritEnvironments": [ + "msvc_x64_x64" + ], + "buildRoot": "${workspaceRoot}/build", + "installRoot": "${workspaceRoot}/build", + "cmakeCommandArgs": "", + "buildCommandArgs": "-v", + "ctestCommandArgs": "" + } + ] +} \ No newline at end of file diff --git a/CmakeLists.txt b/CmakeLists.txt new file mode 100644 index 0000000..9e67dba --- /dev/null +++ b/CmakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.3) +project(TowerOptoSifAndSpectral) +set(QT Core Network WebSockets SerialPort) +find_package(Qt5 REQUIRED ${QT}) +include_directories(./source/test) +add_executable( TowerOptoSifAndSpectral + main.cpp + ./source/test/test.cpp + ./source/test/test.h +) +qt5_use_modules(TowerOptoSifAndSpectral ${QT}) \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..f84efa1 --- /dev/null +++ b/main.cpp @@ -0,0 +1,10 @@ +#include +#include +#include "test.h" +int main() +{ + std::cout << "hello"; + int a=10; + QString ss; + std::cin >> a; +} \ No newline at end of file diff --git a/source/test/test.cpp b/source/test/test.cpp new file mode 100644 index 0000000..e69de29 diff --git a/source/test/test.h b/source/test/test.h new file mode 100644 index 0000000..6f70f09 --- /dev/null +++ b/source/test/test.h @@ -0,0 +1 @@ +#pragma once