Added CMakeLists.txt
This commit is contained in:
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
project(DbTictactoe)
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
add_executable(tictactoe ${HEADERS} ${SOURCES})
|
||||
|
||||
target_link_libraries(tictactoe Qt5::Core)
|
4
main.cpp
4
main.cpp
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user