[CMake] Shared library for a executable
Raymond Wan
rwan.work at gmail.com
Fri Jan 22 08:50:10 EST 2016
Hi Gonzalo,
On Fri, Jan 22, 2016 at 1:49 AM, Gonzalo <ggarra13 at gmail.com> wrote:
> I have the need to have a shared library be created and then this same
> library be accessed by my executable.
> I want both to remain in different sibling directories and have one main
> CMakeList.txt that would call the other two CMakeList.txt (one in the lib
> dir, one in the exe dir) to build the library and the executable.
> In addition, I would like my library to be able to be compiled by itself
> (its own project).
>
> Can someone point me how to do this? I set it up for my program with v2.8
> but now this is failing on 3.4.2.
I recently tried doing this and wrote it up as a record for myself.
Of course, I don't know if it's the right way, but I'm doing it this
way until I figure out a better way...
See if this helps and let me know if you figure out something better:
http://www.rwanwork.info/sysdocs/cmake/overview/
Ray
More information about the CMake
mailing list