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