Using Cmake

Dec 16, 2013
1 min read
May 31, 2023 18:15 EEST

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