Programowanie w systemie UNIX/(auto)Make: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
m link |
m →Automake: cmake |
||
Linia 57:
man --locale=C 1 make
=cmake=
Minimalny plik CMakeLists.txt:<ref>[http://stackoverflow.com/questions/18099901/how-compile-only-c-with-cmake stackoverflow question : how-compile-only-c-with-cmake]</ref>
<pre>
cmake_minimum_required(VERSION 2.6.0)
# here we specify that the project is C language only, so the default
# C compiler on the system will be used
project(myprogram C)
add_executable(myprogram main.c)
</pre>
=Automake=
Linia 66 ⟶ 79:
make
make install
=Ubuntu-make=
|