Changes between Version 22 and Version 23 of code/tools/CMake
- Timestamp:
- Sep 9, 2012, 12:57:13 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/CMake
v22 v23 45 45 }}} 46 46 47 == Using CMake generated project files == 47 48 48 == Using CMake with KDevelop == 49 CMake 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. 49 50 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 53 CMake 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: 51 54 52 55 {{{ … … 54 57 }}} 55 58 59 Go to [wiki:KDevelop3#OptimizeKDevelop this site] to learn about optimizing KDevelop for your purposes. 56 60 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 === 75 62 76 63 CMake is capable of creating .cbp files for [http://www.codeblocks.org/ Code::Blocks]. Create a Code::Blocks project by simply using the following command: … … 83 70 84 71 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 === 73 You 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 77 To do that use following command (in source directory): 87 78 88 79 {{{ 89 $ cmake .. -G"Eclipse CDT4 - Unix Makefiles" 80 $ cd ~/orxonox/ 81 $ ls 82 trunk 83 $ mkdir build 84 $ cd build 85 $ cmake ../trunk -G"Eclipse CDT4 - Unix Makefiles" 90 86 }}} 91 87 92 ''Please add details for Eclipse if you're using it to develop Orxonox'' 93 88 CMake now generated a fully working Eclipse project: Go to [wiki:EclipseIDE#ImporttoEclipse this site] to learn how to import it. 94 89 95 90 == Debug CMake paths ==