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