Hi Gonzalo,
On Fri, Jan 22, 2016 at 1:49 AM, Gonzalo <[email protected]> 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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
