Added CMakeLists.txt

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

No files matched your search

+12
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)
+3 -1
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());