浏览代码

Add web interface resource to the final bundle.

Yuxin Wang 4 年之前
父节点
当前提交
e21f71241e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/CMakeLists.txt

+ 2 - 0
src/CMakeLists.txt

@@ -110,6 +110,8 @@ if(APPLE)
   set(RESOURCE_ROOT Resources)
 endif()
 
+add_resources(TARGET ${MAIN_TARGET} SOURCES ${CMAKE_CURRENT_BINARY_DIR}/../dist/ DEST ${RESOURCE_ROOT}/web-client/desktop)
+
 if(NOT APPLE)
   set(rsrc_locations
     ${QTROOT}/resources