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?
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 07:25 PM.|