set(work_dir @ep_source_dir@)
set(proj_dir ${work_dir}/@proj@)

# On MinGW systems, multiple commands are not
# executed inside one EXECUTE_PROCESS call

EXECUTE_PROCESS(
  COMMAND @QT_QMAKE_EXECUTABLE@
  WORKING_DIRECTORY ${proj_dir}
  ERROR_VARIABLE _error
)

IF(_error)
  MESSAGE("${_error}")
ENDIF()

EXECUTE_PROCESS(
  COMMAND @_make_cmd@
  WORKING_DIRECTORY ${proj_dir}
  ERROR_VARIABLE _error
)

IF(_error)
  MESSAGE("${_error}")
ENDIF()
