diff --git a/qpong_core/CMakeLists.txt b/qpong_core/CMakeLists.txt index b6f2974fbc7fd21e6f24281e53c9e9b92c555f67..d2b3482f95ec3fb39e144a34610a49b4edb634a2 100644 --- a/qpong_core/CMakeLists.txt +++ b/qpong_core/CMakeLists.txt @@ -4,4 +4,4 @@ if(APPLE) endif() # Core QPong library -add_library(qpong_core Particle.cpp ImageBuffer.cpp Player.cpp) \ No newline at end of file +add_library(qpong_core Particle.cpp ImageBuffer.cpp Player.cpp Config.cpp) \ No newline at end of file diff --git a/gtk_qpong_app/Config.cpp b/qpong_core/Config.cpp similarity index 99% rename from gtk_qpong_app/Config.cpp rename to qpong_core/Config.cpp index 9dee6d34991c8c9711116e5c992f15cb16ae920c..356879febd841047c76c223bdebdae98a727ae3b 100644 --- a/gtk_qpong_app/Config.cpp +++ b/qpong_core/Config.cpp @@ -8,6 +8,7 @@ #include<iostream> #include<fstream> +using namespace QPong; const char* toStr(Setting s) { diff --git a/gtk_qpong_app/Config.hpp b/qpong_core/Config.hpp similarity index 99% rename from gtk_qpong_app/Config.hpp rename to qpong_core/Config.hpp index 4b745b1358c65910c3a28b2104a91ea578eea039..2a1ab382ba35b5fc78f4d7fd084d3ae3afe0be99 100644 --- a/gtk_qpong_app/Config.hpp +++ b/qpong_core/Config.hpp @@ -12,6 +12,8 @@ #include<map> #include<vector> +namespace QPong { + enum class Setting { @@ -90,5 +92,5 @@ private: inline static double s_momentumImageScale = 55580.0; }; - +} #endif \ No newline at end of file