Re: [CMake] Rebuild target when external library changes?

2008-12-03 Thread Per Rosengren
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:

Re: [CMake] To specify dependency to other library

2008-12-02 Thread Per Rosengren
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

[CMake] To specify dependency to other library

2008-11-29 Thread Per Rosengren
/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