<div dir="ltr">I have the following code:<div><br></div><div><div>ADD_CUSTOM_COMMAND(TARGET markets_odb</div><div>  PRE_BUILD</div><div>  COMMAND odb ARGS -d sqlite --sqlite-override-null --std c++11 --profile boost --generate-query</div><div>    -I${CMAKE_SOURCE_DIR} -I${Boost_INCLUDE_DIRS}</div><div><span class="" style="white-space:pre">      </span>--include-prefix dir_odb</div><div><span class="" style="white-space:pre">   </span>--changelog ${CMAKE_SOURCE_DIR}/odb/file.xml</div><div><span class="" style="white-space:pre">       </span>${CMAKE_CURRENT_SOURCE_DIR}/file1.hpp</div><div>  COMMAND odb ARGS -d sqlite --sqlite-override-null --std c++11 --profile boost --generate-query</div><div>    -I${CMAKE_SOURCE_DIR} -I${Boost_INCLUDE_DIRS}</div><div><span class="" style="white-space:pre">    </span>--include-prefix dir_odb</div><div><span class="" style="white-space:pre">   </span>--changelog ${CMAKE_SOURCE_DIR}/odb/file.xml</div><div><span class="" style="white-space:pre">       </span>${CMAKE_CURRENT_SOURCE_DIR}/file2.hpp</div></div><div>...</div><div>)</div><div><br></div><div><br></div><div>I have a few more files than the above 2.</div><div><br></div><div>Can I factorize part the command args to reduce the repeated part?</div><div><br></div><div>MM</div></div>