Page 1 of 1

Create CMakeLists.txt for portable app.

Posted: Wed Jun 10, 2015 12:21 am
by tele
When I right click on project name I can click ( Cmake --> Export CMakeLists.txt )
This generate CMakeLists.txt , this is great tool ! :mrgreen:

This will create app with shared libs.
But want try build portable app, what I need do ?
Edit CMakeLists.txt hand, inside codelite?
Maybe someone know how edit CMakeLists.txt to create binary with dynamic / static library ?

For example I can compile example "hellow_world" in terminal

Code: Select all

 gcc -static -Wall -ansi -pedantic hellow_world.c -o hello -lm
but I don't know what change or add in CMakeLists.txt.