-   Programming (
-   -   Cmake, linking libraries (

yfaye 04-07-2009 09:53 AM

Cmake, linking libraries
Hi, here are the details of my problem. There is a project A I try to build, using the libraries of another project B. Both A and B will use boost.

Previously I use command line: gcc xx.c ... -L/path/B/lib/ -lB -ldl, which runs fine. Now I need to use cmake to compile A. How should I do it?


paulsm4 04-08-2009 07:13 PM

Hi -

With a "makefile", you use "make" syntax to generate a gcc command line.

With "CMake", you'll need to re-write your script to use "CMake" syntax instead.

The "gcc" and link syntax (the "gcc -o myprog -Lmylib" stuff: the final output) remains unchanged.

Here are some resources:

Good luck .. PSM

All times are GMT -5. The time now is 08:43 AM.