Changeset 2130
- Timestamp:
- Nov 4, 2008, 1:40:54 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/AddSourceFiles.cmake
r2129 r2130 1 MACRO(ADD_SOURCE_ FILES _directory _source_list _target_list)1 MACRO(ADD_SOURCE_DIRECTORY _target_list _directory) 2 2 3 # Set the variable (_source_list) first 4 INCLUDE(${_directory}/CMakeLists.txt) 5 #MESSAGE(STATUS ${_directory}) 6 #MESSAGE(STATUS "${_source_list}") 7 #MESSAGE(STATUS "${${_source_list}}") 3 # Subfolder puts source files into CMake Cache variable _CACHED_SOURCE_FILES 4 ADD_SUBDIRECTORY(${_directory}) 8 5 9 FOREACH(_source_file ${${_source_list}}) 10 LIST(APPEND ${_target_list} "${_directory}/${_source_file}") 11 #MESSAGE(STATUS ${${_target_list}}) 6 # Put the directory name in front of each source file from the subfolder 7 # and add it to the source list in the current directory 8 FOREACH(_source_file ${_CACHED_SOURCE_FILES}) 9 LIST(APPEND ${_target_list} "${_directory}/${_source_file}") 12 10 ENDFOREACH(_source_file) 11 12 ENDMACRO(ADD_SOURCE_DIRECTORY) 13 14 15 MACRO(ADD_SOURCE_FILES _source_list) 16 17 # Put the source file into a variable that still exists in this_folder/../ 18 # Use FORCE to always overwrite the cache variable 19 SET(_CACHED_SOURCE_FILES ${${_source_list}} CACHE STRING "" FORCE) 20 MARK_AS_ADVANCED(_CACHED_SOURCE_FILES FORCE) 21 13 22 ENDMACRO(ADD_SOURCE_FILES) -
code/trunk/src/orxonox/CMakeLists.txt
r2129 r2130 9 9 ) 10 10 11 ADD_SOURCE_ FILES(gamestates ORXONOX_GAMESTATES_SRC_FILES ORXONOX_SRC_FILES)12 ADD_SOURCE_ FILES(gui ORXONOX_GUI_SRC_FILES ORXONOX_SRC_FILES)13 ADD_SOURCE_ FILES(objects ORXONOX_OBJECTS_SRC_FILES ORXONOX_SRC_FILES)14 ADD_SOURCE_ FILES(overlays ORXONOX_OVERLAYS_SRC_FILES ORXONOX_SRC_FILES)15 ADD_SOURCE_ FILES(tools ORXONOX_TOOLS_SRC_FILES ORXONOX_SRC_FILES)11 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gamestates) 12 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gui) 13 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES objects) 14 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES overlays) 15 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES tools) 16 16 17 17 GET_TARGET_PROPERTY(TOLUA_EXE tolua_orxonox LOCATION) -
code/trunk/src/orxonox/gamestates/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_GAMESTATES_SRC_FILES1 SET( SRC_FILES 2 2 GSDedicated.cc 3 3 GSClient.cc … … 11 11 ) 12 12 13 ADD_SOURCE_FILES(SRC_FILES) 14 -
code/trunk/src/orxonox/gui/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_GUI_SRC_FILES1 SET( SRC_FILES 2 2 GUIManager.cc 3 3 OgreCEGUIRenderer.cpp … … 6 6 ) 7 7 8 ADD_SOURCE_FILES(SRC_FILES) 9 -
code/trunk/src/orxonox/objects/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_OBJECTS_SRC_FILES1 SET( SRC_FILES 2 2 EventListener.cc 3 3 EventDispatcher.cc … … 64 64 ) 65 65 66 ADD_SOURCE_FILES(controllers ORXONOX_OBJECTS_CONTROLLERS_SRC_FILES ORXONOX_OBJECTS_SRC_FILES) 66 ADD_SOURCE_DIRECTORY(SRC_FILES controllers) 67 68 ADD_SOURCE_FILES(SRC_FILES) 69 -
code/trunk/src/orxonox/objects/controllers/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_OBJECTS_CONTROLLERS_SRC_FILES1 SET( SRC_FILES 2 2 Controller.cc 3 3 HumanController.cc 4 4 ) 5 6 ADD_SOURCE_FILES(SRC_FILES) 7 -
code/trunk/src/orxonox/overlays/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_OVERLAYS_SRC_FILES1 SET( SRC_FILES 2 2 OrxonoxOverlay.cc 3 3 OverlayGroup.cc … … 16 16 ) 17 17 18 ADD_SOURCE_FILES(SRC_FILES) 19 -
code/trunk/src/orxonox/tools/CMakeLists.txt
r2129 r2130 1 SET( ORXONOX_TOOLS_SRC_FILES1 SET( SRC_FILES 2 2 BillboardSet.cc 3 3 Mesh.cc … … 8 8 ) 9 9 10 ADD_SOURCE_FILES(SRC_FILES) 11
Note: See TracChangeset
for help on using the changeset viewer.