[CMake] add_custom_target: COMMAND embedded make code

2017-02-24 Thread David Lind
I would like to create a custom target to run UnitTest++ based unit tests that has builtin default parameters. For example: make unit_test verbose=1 xml-output=1 run=test_name suite=suite_name The actual parameters passed to the unit_test are: unit_test --verbose --xml-output --run=test_

[CMake] add_custom_target: COMMAND embedded bash code

2017-02-24 Thread David Lind
I would like to create a custom target to run UnitTest++ based unit tests that has builtin default parameters. For example: make unit_test verbose=1 xml-output=1 run=test_name suite=suite_name The actual parameters passed to the unit_test are: unit_test --verbose --xml-output --run=test_

Re: [CMake] CCACHE_DIR Environment Variable

2017-01-31 Thread David Lind
he variables like so: > > cmake -G Ninja -DCCACHE_DIR=${CCACHE_DIR} ../src > > This saves the value in the cache and then it is preserved regardless of what > environment I have when I do subsequent build steps. > > > > > On Fri, Jan 20, 2017 at 7:44 AM, David

Re: [CMake] CCACHE_DIR Environment Variable

2017-01-19 Thread David Lind
> support Windows too with clcache <https://github.com/frerich/clcache>, but I > haven't tried that yet. > > > On Fri, Jan 20, 2017 at 5:00 AM, David Lind <mailto:davidkl...@gmail.com>> wrote: > I am porting existing makefiles to cmake. One of the key feat

[CMake] CCACHE_DIR Environment Variable

2017-01-19 Thread David Lind
I am porting existing makefiles to cmake. One of the key features of these makefiles is setting the CCACHE_DIR environment variable based upon the tool chain selected. I have TC_.cmake files created. Ideally, I would add a line to these files to set the CCACHE_DIR. But, CMake doesn’t have the a