minor fixes
This commit is contained in:
parent
f3b7ba811e
commit
9f880ebea5
3 changed files with 7 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,4 @@
|
||||||
build/*
|
build/*
|
||||||
|
*.sh
|
||||||
|
*.json
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ project(helloworld VERSION 1.0.0 LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(Qt6_DIR "/home/ud/Qt/6.9.2/gcc_64/lib/cmake/Qt6")
|
|
||||||
|
|
||||||
find_package(Boost CONFIG)
|
find_package(Boost CONFIG)
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
find_package(Qt6 REQUIRED COMPONENTS Core)
|
||||||
|
|
|
||||||
6
main.cpp
6
main.cpp
|
|
@ -70,10 +70,10 @@ int main(int argc, char *argv[]) {
|
||||||
command = std::format("{} {} > {}", name, args, log_file_name);
|
command = std::format("{} {} > {}", name, args, log_file_name);
|
||||||
else
|
else
|
||||||
command = std::format("{} {}", name, args);
|
command = std::format("{} {}", name, args);
|
||||||
log_file << "Running: " << command << "\n";
|
log_file << "Running: " << command << " with working dir: " << working_dir.toStdString() << "\n";
|
||||||
QProcess *proc = new QProcess();
|
QProcess *proc = new QProcess();
|
||||||
QObject::connect(proc, &QProcess::started, [&, command, proc] () {
|
QObject::connect(proc, &QProcess::started, [&, command, proc, working_dir] () {
|
||||||
log_file << "Started process: " << command << " with pid: " << QString::number(proc->processId()).toStdString() << std::endl;
|
log_file << "Started process: " << command << " with pid: " << QString::number(proc->processId()).toStdString() << " with working directory as: " << working_dir.toStdString() << std::endl;
|
||||||
});
|
});
|
||||||
if (mode == "wait") {
|
if (mode == "wait") {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue