Changes

Cmake

350 bytes added, 11:48, 9 February 2014
no edit summary
[http://www.cmake.org/Wiki/CMake CMAKE&nbsp;wiki page]<br>
== Install cmake ==
Using Ubuntu 12.04 is very simple install it using apt-get as:
</source>
after create your main.c file compile it with gcc as:<br><source lang="bash">
gcc main.c -o hello_world
</source>and execute it with<br><source lang="bash">
./hello_world
hello world
</source>
 
== CMAKE Build ==
 
first we must create the cmake configuration file named: CMakeLists.txt with this content:
<pre>PROJECT(Hello_World2)
ADD_EXECUTABLE(hello_world2 main.c)
</pre>
Where:
 
PROJECT: Project Name
 
ADD_EXECUTABLE: Is the executable name and the source files
 
Now we're ready for execute cmake
<source lang="bash">
cmake
</source>