mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
文件提交
This commit is contained in:
17
CMakeSettings.json
Normal file
17
CMakeSettings.json
Normal file
@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
11
CmakeLists.txt
Normal file
11
CmakeLists.txt
Normal file
@ -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})
|
10
main.cpp
Normal file
10
main.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include<iostream>
|
||||
#include<QString>
|
||||
#include "test.h"
|
||||
int main()
|
||||
{
|
||||
std::cout << "hello";
|
||||
int a=10;
|
||||
QString ss;
|
||||
std::cin >> a;
|
||||
}
|
0
source/test/test.cpp
Normal file
0
source/test/test.cpp
Normal file
1
source/test/test.h
Normal file
1
source/test/test.h
Normal file
@ -0,0 +1 @@
|
||||
#pragma once
|
Reference in New Issue
Block a user