commit 1f6aecf9
BlockGame.cpp is now compiled instead of being included
Changed files
| M | CMakeLists.txt before |
| M | source/code/main.cpp before |
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dafd912..8d7acc5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,7 @@ find_package(Boost COMPONENTS program_options REQUIRED)
#Find all sources but one
file(GLOB SOURCES "source/code/*.cpp" "source/code/*/*.cpp" "source/code/Libs/*.c")
#I am still trying to get BlockGame to compile as a source file
-list(REMOVE_ITEM SOURCES "${blockattack_SOURCE_DIR}/source/code/BlockGame.cpp")
+#list(REMOVE_ITEM SOURCES "${blockattack_SOURCE_DIR}/source/code/BlockGame.cpp")
#Some messages to figure out what cmake does
message("${SOURCES}")
diff --git a/source/code/main.cpp b/source/code/main.cpp
index 57b31c2..eb1613f 100644
--- a/source/code/main.cpp
+++ b/source/code/main.cpp
@@ -552,7 +552,6 @@ static TextManager theTextManager;
//Here comes the Block Game object
#include "BlockGame.hpp"
-#include "BlockGame.cpp"
#include "os.hpp"
#include "sago/SagoMiscSdl2.hpp"
#include "ScoresDisplay.hpp"