Create CMakeLists.txt for portable app.
Posted: Wed Jun 10, 2015 12:21 am
When I right click on project name I can click ( Cmake --> Export CMakeLists.txt )
This generate CMakeLists.txt , this is great tool !
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
but I don't know what change or add in CMakeLists.txt.
This generate CMakeLists.txt , this is great tool !
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