1GET_FILENAME_COMPONENT(index_html_dir ${INDEX_HTML_FILE} DIRECTORY)
2
3MESSAGE(STATUS "Building app.min.js and index.min.html ...")
4
5EXECUTE_PROCESS(
6  COMMAND deps/gocode/bin/minify --index-html ${INDEX_HTML_FILE}
7  RESULT_VARIABLE result
8  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
9
10IF(result)
11  MESSAGE( FATAL_ERROR "Failed to build index.min.html or app.min.js. Check build logs." )
12ENDIF(result)
13