equal
deleted
inserted
replaced
164 endif() |
164 endif() |
165 |
165 |
166 #needs to be last |
166 #needs to be last |
167 add_definitions(-dDEBUGFILE) |
167 add_definitions(-dDEBUGFILE) |
168 |
168 |
|
169 |
|
170 # make source files objects depend on their predecessors in list |
|
171 foreach(loop_var ${engine_sources}) |
|
172 if (sourcefiles_sofar) |
|
173 SET_SOURCE_FILES_PROPERTIES(${loop_var} PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}") |
|
174 endif() |
|
175 list(APPEND sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}") |
|
176 endforeach(loop_var) |
|
177 |
|
178 |
169 #SOURCE AND PROGRAMS SECTION |
179 #SOURCE AND PROGRAMS SECTION |
170 if(BUILD_ENGINE_LIBRARY) |
180 if(BUILD_ENGINE_LIBRARY) |
171 message("***Engine will be built as library (experimental)***") |
181 message("***Engine will be built as library (experimental)***") |
172 if(APPLE AND current_macosx_version VERSION_GREATER "10.5") |
182 if(APPLE AND current_macosx_version VERSION_GREATER "10.5") |
173 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |
183 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |