Browse Source

Add `make serve` command in Emscripten build

Phyks (Lucas Verney) 4 years ago
parent
commit
b7619557e2
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/platform/emscripten/CMakeLists.txt

+ 5
- 0
src/platform/emscripten/CMakeLists.txt View File

@@ -13,4 +13,9 @@ add_executable (out.html
13 13
     ${SKIMAP_CORE_SRC}
14 14
     ${SKIMAP_PLATFORM_EMSCRIPTEN_SRC})
15 15
 
16
+add_custom_target (serve
17
+    COMMAND python3 -m http.server
18
+    DEPENDS out.html
19
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
20
+
16 21
 target_include_directories (out.html PUBLIC "../../3rdparty" "../../3rdparty/rapidjson/include" "../../framework" "../../core" ".")