Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/orxonox/gamestates/CMakeLists.txt @ 2518

Last change on this file since 2518 was 2518, checked in by rgrieder, 15 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

File size: 152 bytes
Line 
1ADD_SOURCE_FILES(
2  GSDedicated.cc
3  GSClient.cc
4  GSGraphics.cc
5  GSGUI.cc
6  GSIOConsole.cc
7  GSLevel.cc
8  GSRoot.cc
9  GSServer.cc
10  GSStandalone.cc
11)
Note: See TracBrowser for help on using the repository browser.