Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
 wrote:
> Is there a way of invoking cmake to get the list of non-system header
> dependencies, like invoking gcc with -MMD?  I need to find out the
> list of non-system header dependencies and I know cmake has a way of
> doing this, I just need to know if there is command I can put in the
> CMakeLists.txt file to get this information...

Is there any way of accessing the generated dependencies?  I know
there is a generation phase, but I don't think I can access the files
being generated during the generation process is.  Is there a way of
doing what I want?  All I need is a list of include included headers
(excluding system ones) for a given C++ file.
-- 

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread J Decker
On Wed, Jan 13, 2016 at 11:31 AM, j s  wrote:
> From what I remember from the mailing list a long time ago, CMake has its
> own dependency generator independent of the CPP.
>
it does; but not for all generators
>
> On 1/13/16 1:20 PM, Tom Kacvinsky wrote:
>>
>> On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:
>>
>>> The short answer is 'no'.
>>
>> I see depends.internal was generated with the gcc (in my case) option
>> -MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
>> this at build time or Makefile generation time?  If the latter, it
>> would be nice if this could be exposed to the user
>>
>>> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
>>>  wrote:

 On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
  wrote:
>
> Is there a way of invoking cmake to get the list of non-system header
> dependencies, like invoking gcc with -MMD?  I need to find out the
> list of non-system header dependencies and I know cmake has a way of
> doing this, I just need to know if there is command I can put in the
> CMakeLists.txt file to get this information...

 Is there any way of accessing the generated dependencies?  I know
 there is a generation phase, but I don't think I can access the files
 being generated during the generation process is.  Is there a way of
 doing what I want?  All I need is a list of include included headers
 (excluding system ones) for a given C++ file.
>
>
> --
>
> 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
-- 

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:

> The short answer is 'no'.

I see depends.internal was generated with the gcc (in my case) option
-MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
this at build time or Makefile generation time?  If the latter, it
would be nice if this could be exposed to the user

> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
>  wrote:
>> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>>  wrote:
>>> Is there a way of invoking cmake to get the list of non-system header
>>> dependencies, like invoking gcc with -MMD?  I need to find out the
>>> list of non-system header dependencies and I know cmake has a way of
>>> doing this, I just need to know if there is command I can put in the
>>> CMakeLists.txt file to get this information...
>>
>> Is there any way of accessing the generated dependencies?  I know
>> there is a generation phase, but I don't think I can access the files
>> being generated during the generation process is.  Is there a way of
>> doing what I want?  All I need is a list of include included headers
>> (excluding system ones) for a given C++ file.
-- 

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread j s
From what I remember from the mailing list a long time ago, CMake has 
its own dependency generator independent of the CPP.


On 1/13/16 1:20 PM, Tom Kacvinsky wrote:

On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:


The short answer is 'no'.

I see depends.internal was generated with the gcc (in my case) option
-MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
this at build time or Makefile generation time?  If the latter, it
would be nice if this could be exposed to the user


On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
 wrote:

On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
 wrote:

Is there a way of invoking cmake to get the list of non-system header
dependencies, like invoking gcc with -MMD?  I need to find out the
list of non-system header dependencies and I know cmake has a way of
doing this, I just need to know if there is command I can put in the
CMakeLists.txt file to get this information...

Is there any way of accessing the generated dependencies?  I know
there is a generation phase, but I don't think I can access the files
being generated during the generation process is.  Is there a way of
doing what I want?  All I need is a list of include included headers
(excluding system ones) for a given C++ file.


--

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread J Decker
Or reorganize your project so your includes aren't all scattered and
just INSTALL(DIRECTORY include )


On Wed, Jan 13, 2016 at 12:00 PM, Tom Kacvinsky
 wrote:
> Should have read the docs before I asked that last question:
> file(STRINGS ...) is what I want
>
> On Wed, Jan 13, 2016 at 2:59 PM, Tom Kacvinsky
>  wrote:
>> I suppose what I could do is get the target properties for the
>> compiler flags (will this include compiler defines and include
>> directories?), add -MDD -c (using gcc, so those are the options I
>> want) to the compiler flags and make a custom command to generate the
>> file, then post process it to get the list of includes.  But the
>> question I have is how do I generate a list from a text file? In the
>> end I need a list of header files I can include in a development kit I
>> am creating.
>>
>> On Wed, Jan 13, 2016 at 2:39 PM, J Decker  wrote:
>>> On Wed, Jan 13, 2016 at 11:31 AM, j s  wrote:
 From what I remember from the mailing list a long time ago, CMake has its
 own dependency generator independent of the CPP.

>>> it does; but not for all generators

 On 1/13/16 1:20 PM, Tom Kacvinsky wrote:
>
> On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:
>
>> The short answer is 'no'.
>
> I see depends.internal was generated with the gcc (in my case) option
> -MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
> this at build time or Makefile generation time?  If the latter, it
> would be nice if this could be exposed to the user
>
>> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
>>  wrote:
>>>
>>> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>>>  wrote:

 Is there a way of invoking cmake to get the list of non-system header
 dependencies, like invoking gcc with -MMD?  I need to find out the
 list of non-system header dependencies and I know cmake has a way of
 doing this, I just need to know if there is command I can put in the
 CMakeLists.txt file to get this information...
>>>
>>> Is there any way of accessing the generated dependencies?  I know
>>> there is a generation phase, but I don't think I can access the files
>>> being generated during the generation process is.  Is there a way of
>>> doing what I want?  All I need is a list of include included headers
>>> (excluding system ones) for a given C++ file.


 --

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

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
Should have read the docs before I asked that last question:
file(STRINGS ...) is what I want

On Wed, Jan 13, 2016 at 2:59 PM, Tom Kacvinsky
 wrote:
> I suppose what I could do is get the target properties for the
> compiler flags (will this include compiler defines and include
> directories?), add -MDD -c (using gcc, so those are the options I
> want) to the compiler flags and make a custom command to generate the
> file, then post process it to get the list of includes.  But the
> question I have is how do I generate a list from a text file? In the
> end I need a list of header files I can include in a development kit I
> am creating.
>
> On Wed, Jan 13, 2016 at 2:39 PM, J Decker  wrote:
>> On Wed, Jan 13, 2016 at 11:31 AM, j s  wrote:
>>> From what I remember from the mailing list a long time ago, CMake has its
>>> own dependency generator independent of the CPP.
>>>
>> it does; but not for all generators
>>>
>>> On 1/13/16 1:20 PM, Tom Kacvinsky wrote:

 On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:

> The short answer is 'no'.

 I see depends.internal was generated with the gcc (in my case) option
 -MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
 this at build time or Makefile generation time?  If the latter, it
 would be nice if this could be exposed to the user

> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
>  wrote:
>>
>> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>>  wrote:
>>>
>>> Is there a way of invoking cmake to get the list of non-system header
>>> dependencies, like invoking gcc with -MMD?  I need to find out the
>>> list of non-system header dependencies and I know cmake has a way of
>>> doing this, I just need to know if there is command I can put in the
>>> CMakeLists.txt file to get this information...
>>
>> Is there any way of accessing the generated dependencies?  I know
>> there is a generation phase, but I don't think I can access the files
>> being generated during the generation process is.  Is there a way of
>> doing what I want?  All I need is a list of include included headers
>> (excluding system ones) for a given C++ file.
>>>
>>>
>>> --
>>>
>>> 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
>> --
>>
>> 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
-- 

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
I suppose what I could do is get the target properties for the
compiler flags (will this include compiler defines and include
directories?), add -MDD -c (using gcc, so those are the options I
want) to the compiler flags and make a custom command to generate the
file, then post process it to get the list of includes.  But the
question I have is how do I generate a list from a text file? In the
end I need a list of header files I can include in a development kit I
am creating.

On Wed, Jan 13, 2016 at 2:39 PM, J Decker  wrote:
> On Wed, Jan 13, 2016 at 11:31 AM, j s  wrote:
>> From what I remember from the mailing list a long time ago, CMake has its
>> own dependency generator independent of the CPP.
>>
> it does; but not for all generators
>>
>> On 1/13/16 1:20 PM, Tom Kacvinsky wrote:
>>>
>>> On Wed, Jan 13, 2016 at 2:09 PM, J Decker  wrote:
>>>
 The short answer is 'no'.
>>>
>>> I see depends.internal was generated with the gcc (in my case) option
>>> -MD (or perhaps -MDD).  Ss cmake knows how to do this.  Question: is
>>> this at build time or Makefile generation time?  If the latter, it
>>> would be nice if this could be exposed to the user
>>>
 On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
  wrote:
>
> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>  wrote:
>>
>> Is there a way of invoking cmake to get the list of non-system header
>> dependencies, like invoking gcc with -MMD?  I need to find out the
>> list of non-system header dependencies and I know cmake has a way of
>> doing this, I just need to know if there is command I can put in the
>> CMakeLists.txt file to get this information...
>
> Is there any way of accessing the generated dependencies?  I know
> there is a generation phase, but I don't think I can access the files
> being generated during the generation process is.  Is there a way of
> doing what I want?  All I need is a list of include included headers
> (excluding system ones) for a given C++ file.
>>
>>
>> --
>>
>> 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
> --
>
> 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
-- 

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


Re: [CMake] How to get generated dependencies

2016-01-13 Thread J Decker
The short answer is 'no'.

On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
 wrote:
> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>  wrote:
>> Is there a way of invoking cmake to get the list of non-system header
>> dependencies, like invoking gcc with -MMD?  I need to find out the
>> list of non-system header dependencies and I know cmake has a way of
>> doing this, I just need to know if there is command I can put in the
>> CMakeLists.txt file to get this information...
>
> Is there any way of accessing the generated dependencies?  I know
> there is a generation phase, but I don't think I can access the files
> being generated during the generation process is.  Is there a way of
> doing what I want?  All I need is a list of include included headers
> (excluding system ones) for a given C++ file.
> --
>
> 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
-- 

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


[CMake] How to get generated dependencies

2016-01-12 Thread Tom Kacvinsky
Is there a way of invoking cmake to get the list of non-system header
dependencies, like invoking gcc with -MMD?  I need to find out the
list of non-system header dependencies and I know cmake has a way of
doing this, I just need to know if there is command I can put in the
CMakeLists.txt file to get this information...

Thanks,

Tom
-- 

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