Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/orxonox/objects/CMakeLists.txt @ 2608

Last change on this file since 2608 was 2518, checked in by rgrieder, 16 years ago

Adjusted source file macros to cmake 2.6 because it offers PARENT_SCOPE variable setting which removes my little hack with the CMake cache.
Also notice that the syntax has changed:

ADD_SOURCE_FILES(

Blubb.cc
Asdf.cc

)
ADD_SOURCE_DIRECTORY(ford_prefect)

These two commands can be written in an arbitrary order.
To actually use the created list of souce files, there is a third macro:
WRITE_SOURCE_FILES(myVariableName)

A demonstration can be found by looking at src/orxonox/CMakeLists.txt and src/orxonox/objects/CMakeLists.txt

  • Property svn:eol-style set to native
File size: 408 bytes
Line 
1ADD_SOURCE_FILES(
2  EventListener.cc
3  EventDispatcher.cc
4  EventTarget.cc
5  Level.cc
6  Radar.cc
7  RadarListener.cc
8  RadarViewable.cc
9  Tickable.cc
10  Test.cc
11  Scene.cc
12  Script.cc
13)
14
15ADD_SOURCE_DIRECTORY(controllers)
16ADD_SOURCE_DIRECTORY(gametypes)
17ADD_SOURCE_DIRECTORY(infos)
18#ADD_SOURCE_DIRECTORY(pickup)
19ADD_SOURCE_DIRECTORY(quest)
20ADD_SOURCE_DIRECTORY(weaponSystem)
21ADD_SOURCE_DIRECTORY(worldentities)
Note: See TracBrowser for help on using the repository browser.