diff --git a/.cproject b/.cproject
index 3ff248b..e214799 100644
--- a/.cproject
+++ b/.cproject
@@ -9,6 +9,8 @@
+
+
@@ -16,7 +18,7 @@
-
+
@@ -83,6 +85,8 @@
+
+
@@ -90,7 +94,7 @@
-
+
diff --git a/.externalToolBuilders/CMake Project Generator.launch b/.externalToolBuilders/CMake Project Generator.launch
new file mode 100644
index 0000000..f60fdce
--- /dev/null
+++ b/.externalToolBuilders/CMake Project Generator.launch
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.externalToolBuilders/Prepare Assets.launch b/.externalToolBuilders/Prepare Assets.launch
deleted file mode 100644
index bdff3f5..0000000
--- a/.externalToolBuilders/Prepare Assets.launch
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/.project b/.project
index fb6c5a9..6caaf41 100644
--- a/.project
+++ b/.project
@@ -16,11 +16,7 @@
LaunchConfigHandle
- <project>/.externalToolBuilders/Prepare Assets.launch
-
-
- incclean
- true
+ <project>/.externalToolBuilders/CMake Project Generator.launch
diff --git a/.sconsign.dblite b/.sconsign.dblite
new file mode 100644
index 0000000..58a65c8
Binary files /dev/null and b/.sconsign.dblite differ
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..7c26b7f
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,35 @@
+cmake_minimum_required (VERSION 2.6)
+project (Farmlands)
+
+set (SRC_DIR "src")
+set (ASSET_DIR "assets")
+set (BUILD_DIR "build")
+set (LIBS "SDL2" "SDL2_image" "SDL2_ttf" "boost_filesystem" "boost_system")
+set (TARGET "Farmlands")
+
+file (GLOB_RECURSE FILES_CPP "${SRC_DIR}/*.cpp")
+file (GLOB_RECURSE FILES_ASSETS "${ASSET_DIR}/*")
+
+add_executable(${TARGET} ${FILES_CPP})
+target_link_libraries(${TARGET} ${LIBS})
+set_property(TARGET ${TARGET} PROPERTY CXX_STANDARD 11)
+set_property(TARGET ${TARGET} PROPERTY CXX_STANDARD_REQUIRED ON)
+
+include_directories ( ${SRC_DIR} )
+
+add_custom_target (
+ PREPARE_ASSETS
+ COMMAND python3 "${BUILD_DIR}/prepareAssets.py"
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+
+add_dependencies(${TARGET} PREPARE_ASSETS)
+
+# Eclipse related configuration
+if (CMAKE_COMPILER_IS_GNUCC)
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0")
+endif (CMAKE_COMPILER_IS_GNUCC)
+if (CMAKE_COMPILER_IS_GNUCXX)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmessage-length=0")
+endif (CMAKE_COMPILER_IS_GNUCXX)
+
+set (CMAKE_VERBOSE_MAKEFILE ON)
\ No newline at end of file
diff --git a/build/prepareAssets.py b/build/prepareAssets.py
index 2bc6011..49fa849 100755
--- a/build/prepareAssets.py
+++ b/build/prepareAssets.py
@@ -5,7 +5,6 @@ import sys
#
# Constants
#
-
ASSETS_DIR="assets"
RESOURCES_FILE="src/resources/Resources.g.h"
@@ -147,4 +146,4 @@ if __name__ == '__main__':
f = open(RESOURCES_FILE, "w")
f.write(resFile)
f.close()
-
\ No newline at end of file
+