From fe2270c5395a7d256ffc543eba759691743c82b1 Mon Sep 17 00:00:00 2001 From: illyum Date: Sun, 15 Sep 2024 02:26:40 -0600 Subject: [PATCH] chore(cmake): fix bad cmake --- CMakeLists.txt | 6 ++---- README.md | 8 +------- engine/ICEngine.hpp | 10 ++++++++++ engine/src/core/{ICEngine.cpp => test.cpp} | 0 4 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 engine/ICEngine.hpp rename engine/src/core/{ICEngine.cpp => test.cpp} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4702719..10375fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,12 +42,10 @@ ELSE () ADD_COMPILE_OPTIONS(-Wall -Wextra -Werror -Wpedantic) ENDIF () -INCLUDE_DIRECTORIES( - engine/src/core -) +INCLUDE_DIRECTORIES(engine/) SET(EngineSources - engine/src/core/ICEngine.cpp + engine/src/core/test.cpp ) IF (BUILD_ENGINE_AS_SHARED_LIBRARY) diff --git a/README.md b/README.md index 9f8db4c..0a5c4d0 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,6 @@ Smol little game engine since I have no idea what I'm doing -# Notice: - -Since this uses the newer cpp modules, you need to make sure your compiler + build system + IDE supports this. You can -find more -info [on this stack overflow post](https://stackoverflow.com/questions/57300495/how-to-use-c20-modules-with-cmake). - ## Building Find more info about building the project in the `docs/Building.md` file. @@ -24,7 +18,7 @@ include(FetchContent) # Fetch the external repository FetchContent_Declare( ICEngine - GIT_REPOSITORY http://proudcricle:3001/illyum/ICEngine.git + GIT_REPOSITORY http://proudcricle/illyum/ICEngine.git GIT_TAG main ) diff --git a/engine/ICEngine.hpp b/engine/ICEngine.hpp new file mode 100644 index 0000000..041f5a9 --- /dev/null +++ b/engine/ICEngine.hpp @@ -0,0 +1,10 @@ +// +// Created by illyum on 9/15/2024. +// + +#ifndef ICENGINE_HPP +#define ICENGINE_HPP + +#include "src/core/Logger.hpp" + +#endif //ICENGINE_HPP diff --git a/engine/src/core/ICEngine.cpp b/engine/src/core/test.cpp similarity index 100% rename from engine/src/core/ICEngine.cpp rename to engine/src/core/test.cpp