Re: [CMake] add_custom_target: COMMAND embedded make code

2017-02-24 Thread DKLind
Solved problem from another post with similar space escaping. set(PARAMS "$(if $(verbose), --verbose)" "$(if $(xml-output), --xml-output)" "$(if $(run), --run=$(run))" "$(if $(suite), --suite=$(suite))" ) string(REPLACE " " ";" PARAMS ${PARAMS})

[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