I want to preprocess some slice files with the preprocess compiler slice2cpp,it will compile slice file and generate cpp and header file.
I add the extra compiler as following , it works,but it only add cpp file dependency to makefile,while I want add both cpp and header file ,just like what qmake process UI file.
anyone can help me ?
Qt Code:
  1. slice_cpp.output = ${QMAKE_FILE_BASE}.cpp
  2. slice_cpp.input = SLICE_FILES
  3. slice_cpp.commands=slice2cpp --underscore ${QMAKE_FILE_IN} -I ../slice -I $$ICE_SLICE_PATH
  4. slice_cpp.name= "ice preprocesor"
  5. slice_cpp.variable_out= SOURCES
  6. QMAKE_EXTRA_COMPILERS += slice_cpp
To copy to clipboard, switch view to plain text mode