Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— |
programming:cmake [2013/12/16 13:59] (aktuell) idefix angelegt |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== | ||
+ | We create a simple program from two object files which are link to some external libraries. | ||
+ | Create the file CMakeLists.txt: | ||
+ | < | ||
+ | PROJECT(measure) | ||
+ | ADD_EXECUTABLE(measure video.c Xgraphics.c) | ||
+ | </ | ||
+ | Now we need to create the Makefile with: | ||
+ | < | ||
+ | cmake . | ||
+ | </ | ||
+ | |||
+ | Now easily compile with: | ||
+ | < | ||
+ | make | ||
+ | </ | ||