[CMake] Executable depending on all source files

Eric Noulard eric.noulard at gmail.com
Sun Aug 26 04:53:22 EDT 2012


2012/8/26 Russell Wallace <russell.wallace at gmail.com>:
> 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.

Ok, this is a common way of work but currently CMake does not enforce that,
so we cannot rely on it either.

>> 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.

Boost+CMake specialist will probably answer those
this is clearly not my expertise area.

>> Just curious,
>> Are you currently moving a lot of project to CMake?
>
> No, just one project.

Then I bet in a couple of week you'll probably be please
with the CMake way of work.

Not saying that CMake should not improve but as with
other tool startup time exists.

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list