Added CMakeLists.txt

This commit is contained in:
Daniel Brunner
2018-10-07 17:57:15 +02:00
parent 6227933285
commit d69afac1f1
2 changed files with 15 additions and 1 deletions

12
CMakeLists.txt Normal file
View File

@@ -0,0 +1,12 @@
project(DbTictactoe)
set(HEADERS
)
set(SOURCES
main.cpp
)
add_executable(tictactoe ${HEADERS} ${SOURCES})
target_link_libraries(tictactoe Qt5::Core)

View File

@@ -4,6 +4,8 @@
#include <QTextStream>
#include <QDebug>
#include <array>
enum class FieldType { EMPTY, CIRCLE, CROSS };
char fieldTypeLetter(const FieldType fieldType)
@@ -230,7 +232,7 @@ int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QDir dir("tictactoe");
QDir dir("htdocs");
dir.removeRecursively();
dir.mkpath(dir.absolutePath());