[CMake] Executable depending on all source files
Rolf Eike Beer
eike at sf-mail.de
Sun Aug 26 05:48:12 EDT 2012
Russell Wallace wrote:
> On Sun, Aug 26, 2012 at 8:55 AM, Eric Noulard <eric.noulard at gmail.com>
wrote:
> > Like I said even if the new file is a "cpp" file, should CMake add
> > it to add_executable or add_library or...
>
> If different C++ source files have different purposes, I would put
> them in different directories.
>
> > I know that you want to specify the "to be added" file spec using
> > a GLOB expression but then what we may need currently would be
> > a mechanism to cleanly trigger the refresh or the list of file.
> > FILE(GLOB ...) was not meant for that.
>
> That's okay, I'm happy to trigger the refresh by deleting and
> re-creating the build directory. CMake seems to work fine for this as
> it currently stands. My biggest concern right now is the various
> problems with correctly finding and linking with boost, which is what
> I wanted cmake for in the first place.
You need to rerun CMake. Explicitely doing "cmake ." in the build directory
should work, no need to delete everything.
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120826/3666ee5c/attachment.pgp>
More information about the CMake
mailing list