diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index de6ce8270027db04703d1a6755a33e8a87dd6dae..588b8dc7d5c5fbb9d505b00c30f0096919c649b0 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -18,6 +18,8 @@
 # <http://www.gnu.org/licenses/>.
 
 # Configure the project
+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src)
+
 SET (${PROJECT_NAME}_SOURCES
   ${CMAKE_BINARY_DIR}/src/gui/main.cc
   settings.cc