I'm trying to add a test that compare the output of two executable that I compiled.
set (TEST_PARAMETERS <(./${EXECUTABLE_ORIGINAL}) <(./${EXECUTABLE_TRANSFORMED}))
add_test(NAME compare-output-${TEST_NAME} COMMAND "diff" ${TEST_PARAMETERS})
My problem is that CMake is inserting nasty double quotes everywhere and of course it makes some trouble with the redirection.
So the generated test command is the following
/usr/bin/diff "<" "(" "./original_code_array4" ")" "<" "(" "./transformed_code_array4" ")"
The working command should be
/usr/bin/diff <(./original_code_array4) <(./transformed_code_array4)
Is there a way to avoid this double quotes generation ? It's really annoying !