Fix right files to depend on version.h.
authoranmaster <anmaster@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 1 Jan 2010 22:52:49 +0000 (22:52 +0000)
committeranmaster <anmaster@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 1 Jan 2010 22:52:49 +0000 (22:52 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6249 837edb03-e0f3-0310-88ca-d4d4e8b29345

CMakeLists.txt

index fde724f..e527a9c 100644 (file)
@@ -137,9 +137,12 @@ ENDIF(SVNVERSION_EXECUTABLE)
 
 SET_SOURCE_FILES_PROPERTIES(${CMAKE_BINARY_DIR}/version.h
                             PROPERTIES GENERATED true)
-SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
+SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/src/supertux/main.cpp
+                            PROPERTIES OBJECT_DEPENDS "${CMAKE_BINARY_DIR}/version.h")
+SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/src/supertux/title_screen.cpp
+                            PROPERTIES OBJECT_DEPENDS "${CMAKE_BINARY_DIR}/version.h")
+SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/src/addon/addon_manager.cpp
                             PROPERTIES OBJECT_DEPENDS "${CMAKE_BINARY_DIR}/version.h")
-
 ## Check platform-dependent build options
 
 INCLUDE(ConfigureChecks)