Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 22 and Version 23 of code/tools/CMake


Ignore:
Timestamp:
Sep 9, 2012, 12:57:13 PM (12 years ago)
Author:
bknecht
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/CMake

    v22 v23  
    4545}}}
    4646
     47== Using CMake generated project files ==
    4748
    48 == Using CMake with KDevelop ==
     49CMake is capable of creating project files for various IDEs so it's easier to integrate the project into the IDE of your choice. Following sections give a quick overview of possible ways to generate these project files. We don't care which (or if any) IDE you use, but we strongly advise you to use one to write clean code quickly and to benefit from code completion and other benefits the IDE provides.
    4950
    50 CMake is capable of creating .kdevelop files, which are used as project files in (guess where) [http://www.kdevelop.org/ KDevelop]. To create them simply use the following command:
     51=== Using CMake with KDevelop ===
     52
     53CMake is capable of creating .kdevelop files, which are used as project files in [http://www.kdevelop.org/ KDevelop]. To create them simply use the following command:
    5154
    5255{{{
     
    5457}}}
    5558
     59Go to [wiki:KDevelop3#OptimizeKDevelop this site] to learn about optimizing KDevelop for your purposes.
    5660
    57 === Optimize KDevelop ===
    58 Do some configursation to make the usage of KDevelop smoother[[br]]
    59 
    60 Go to '''{{{Project->Project Option->Build Option->Make}}}''', and do the following changes[[BR]]
    61 
    62  * Select Run Multiple Jobs, and set Number of Simultaneous Jobs to 3[[BR]]
    63  * set Make Prority to 5 [[br]]
    64  * Optional: Add Environment Variables [[br]]
    65   * i.e Name: CXXFLAGS; Value: -O2 -pipe[[br]]
    66   * CXXFLAGS or LDFLAGS are also possible. In fact any compiler flags can be set here[[br]]
    67   ''If you don't know what CFLAGS are, don't set them, otherwise use at you own discretion. Only reasonable flags will be supported''[[br]][[br]]
    68 
    69 Go to '''{{{Project->Project Option->Run Option}}}'''
    70  * Working Directory: just add {{{/bin}}}
    71  ''you still need to run {{{./run-script}}} the first time''
    72 
    73 
    74 == Using CMake with Code::Blocks ==
     61=== Using CMake with Code::Blocks ===
    7562
    7663CMake is capable of creating .cbp files for [http://www.codeblocks.org/ Code::Blocks]. Create a Code::Blocks project by simply using the following command:
     
    8370
    8471
    85 == Using CMake with Eclipse ==
    86 You can also use CMake to create project files for Eclipse CDT 4.0. To do that use following command:
     72=== Using CMake with Eclipse ===
     73You can also use CMake to create project files for Eclipse CDT 4.0.[[br]]
     74
     75'''Note:''' Eclipse does not like your build directory being a sub directory of your source directory. In order to use Eclipse please create a build directory on the same level as your source directory.
     76
     77To do that use following command (in source directory):
    8778
    8879{{{
    89 $ cmake .. -G"Eclipse CDT4 - Unix Makefiles"
     80$ cd ~/orxonox/
     81$ ls
     82trunk
     83$ mkdir build
     84$ cd build
     85$ cmake ../trunk -G"Eclipse CDT4 - Unix Makefiles"
    9086}}}
    9187
    92 ''Please add details for Eclipse if you're using it to develop Orxonox''
    93 
     88CMake now generated a fully working Eclipse project: Go to [wiki:EclipseIDE#ImporttoEclipse this site] to learn how to import it.
    9489
    9590== Debug CMake paths ==