Re: [CMake] adding dependencies to a target

2014-06-28 Thread Hendrik Sattler
Hi, since you know the deps for your target_link_libraries call, you can use this deps list as well to configure your add_custom_command to generate your source2 file. HS On 28. Juni 2014 07:23:21 MESZ, abid rahman wrote: >Hello, > >I am adding a new target using "add_library(target source1

[CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Martin Mitáš
Hello, I'm trying to pass multiple options from outside to a command in add_custom_target() or add_custom_command(). I am new to CMake and I don't know whether the observed behavior is bug or I do it in a wrong way. I am doing all this with CMake 3.0 on Windows within MSYS environment if it pl

[CMake] How to get a list of all the static libraries that a target will link against ?

2014-06-28 Thread Glenn Coombs
I have a project which compiles and links into both a stand alone executable and a dynamic shared library. The library and the executable link against the same project libraries but have different object files containing their entry points: main.o for the executable and dll_main.o for the library.

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Kornel Benko
Am Samstag, 28. Juni 2014 um 12:06:56, schrieb Martin Mitáš > > Hello, > > I'm trying to pass multiple options from outside to a command in > add_custom_target() > or add_custom_command(). I am new to CMake and I don't know whether the > observed > behavior is bug or I do it in a wrong way. > >

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Hendrik Sattler
On 28. Juni 2014 18:00:52 MESZ, Kornel Benko wrote: >Am Samstag, 28. Juni 2014 um 12:06:56, schrieb Martin Mitáš > >> >> Hello, >> >> I'm trying to pass multiple options from outside to a command in >add_custom_target() >> or add_custom_command(). I am new to CMake and I don't know whether >t

[CMake] Updating files in the source tree.

2014-06-28 Thread Rick McGuire
Sort of a long explanation/question here, so bear with me :-) With our project, we have a number of source files that are generated from .xml files. These generate a number of header files, message files, etc using xslt. For a number of reasons, the generated files are also checked into to SVN.

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Kornel Benko
Am Samstag, 28. Juni 2014 um 19:21:50, schrieb Hendrik Sattler > >So 'ls' got '-l -h' as one paramater. > >I would use > >1.) -DMYTOOL_FLAGS="-lh" > > > >or > >2.) -DMYTOOL_FLAGS="-l;-h" > > Or maybe escaping on the shell as > "-DMYTOOL_FLAGS=-l -h" > also works? This is identical to -DMYTOOL_F

Re: [CMake] Updating files in the source tree.

2014-06-28 Thread Scott Aron Bloom
I have a couple of similar files to this. Some are XML based source files, others are “SVN” sourced file. Others are .y/.l based files. Some are checked in, some are not. The reason, not every developer has or needs the “full” development environment. Ie, not every developer has flex/bison

Re: [CMake] Updating files in the source tree.

2014-06-28 Thread Alan W. Irwin
On 2014-06-28 13:52-0400 Rick McGuire wrote: Sort of a long explanation/question here, so bear with me :-) With our project, we have a number of source files that are generated from .xml files. These generate a number of header files, message files, etc using xslt. For a number of reasons, th