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
Related Posts
Dec 16 | Autoconf - Automake | 1 min read |
Dec 16 | Cross Compile for AVR | 1 min read |
Dec 16 | Cross Compile for PPC | 1 min read |
Dec 16 | Kernel Module for 2.6 | 4 min read |
Dec 16 | Print Source Code | 1 min read |