diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e69b556 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +project(DbTictactoe) + +set(HEADERS +) + +set(SOURCES + main.cpp +) + +add_executable(tictactoe ${HEADERS} ${SOURCES}) + +target_link_libraries(tictactoe Qt5::Core) diff --git a/main.cpp b/main.cpp index 595b089..2a1f769 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,8 @@ #include #include +#include + 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());