Lezz Giles wrote:
I have a project set up that imports libraries, and I want to relink if
those imported libraries change;
For example, in a directory I have
hellow.c
libfred.a
CMakeLists.txt
where CMakeLists.txt contains:
Per Rosengren wrote:
I have two programs foo and bar.
All classes and functionality that could potentially be used by other
programs are in the library mor.
foo and bar include mor's headers and link to it.
mor will be used by other developers. foo and bar should not be
accessible by them
/Class.hh,
and they link with the cmake command
ADD_EXECUTABLE( foo foo.cpp )
TARGET_LINK_LIBRARIES( foo mor )
Below are my actual CMakeFiles.txt files.
Thank you,
Per Rosengren
CMakeLists.txt for mor:
---
#if you don't want the full compiler output, remove the following