Create CMakeLists.txt for portable app.

General questions regarding the usage of CodeLite
tele
CodeLite Curious
Posts: 7
Joined: Tue Jun 09, 2015 11:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

Create CMakeLists.txt for portable app.

Post 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.