diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9757c82 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/out +/.vs \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..38974db --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "lib/websocketpp"] + path = lib/websocketpp + url = https://github.com/zaphoyd/websocketpp +[submodule "lib/zlib"] + path = lib/zlib + url = https://github.com/madler/zlib +[submodule "lib/uWebSockets"] + path = lib/uWebSockets + url = https://github.com/uNetworking/uWebSockets diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a4925dc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.12) + +project("Kahoot") + +set(CMAKE_CXX_STANDARD 20) + +add_executable(Kahoot "src/main.cpp") + +include_directories("lib/uWebSockets/src") +include_directories("lib/uWebSockets/uSockets/src") +include_directories("lib/zlib") \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..e64126c --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,46 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "x64-release", + "displayName": "x64 Release", + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "installDir": "${sourceDir}/out/install/${presetName}", + "architecture": { + "value": "x64", + "strategy": "external" + }, + "cacheVariables": { + "CMAKE_C_COMPILER": "cl.exe", + "CMAKE_CXX_COMPILER": "cl.exe", + "CMAKE_BUILD_TYPE": "Release" + }, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Windows" + } + }, + { + "name": "linux-release", + "displayName": "Linux Release", + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "installDir": "${sourceDir}/out/install/${presetName}", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + }, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Linux" + }, + "vendor": { + "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { + "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" + } + } + } + ] +} diff --git a/lib/uWebSockets b/lib/uWebSockets new file mode 160000 index 0000000..84941b9 --- /dev/null +++ b/lib/uWebSockets @@ -0,0 +1 @@ +Subproject commit 84941b99bf32dffafd940ad5a4a92d9c007a086d diff --git a/lib/zlib b/lib/zlib new file mode 160000 index 0000000..0f51fb4 --- /dev/null +++ b/lib/zlib @@ -0,0 +1 @@ +Subproject commit 0f51fb4933fc9ce18199cb2554dacea8033e7fd3 diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..5ef01ba --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include "ClientApp.h" + +int main() +{ + return 0; +} \ No newline at end of file