Skip to content
Snippets Groups Projects
Commit ceff1f18 authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[CMake] Output converted vtk.js into sources/web.

parent db330fdd
No related branches found
No related tags found
No related merge requests found
...@@ -217,6 +217,7 @@ function (AddTest) ...@@ -217,6 +217,7 @@ function (AddTest)
-DTESTER_COMMAND=${TESTER_COMMAND} -DTESTER_COMMAND=${TESTER_COMMAND}
-DVTKJS_CONVERTER=${VTKJS_CONVERTER} -DVTKJS_CONVERTER=${VTKJS_CONVERTER}
-DBINARY_PATH=${AddTest_BINARY_PATH} -DBINARY_PATH=${AddTest_BINARY_PATH}
-DVTKJS_OUTPUT_PATH=${CMAKE_SOURCE_DIR}/web/static/vis/${AddTest_PATH}
"-DVIS_FILES=${AddTest_VIS}" "-DVIS_FILES=${AddTest_VIS}"
-P ${PROJECT_SOURCE_DIR}/scripts/cmake/test/AddTestTester.cmake -P ${PROJECT_SOURCE_DIR}/scripts/cmake/test/AddTestTester.cmake
) )
......
...@@ -19,8 +19,11 @@ if(NOT EXIT_CODE STREQUAL "0") ...@@ -19,8 +19,11 @@ if(NOT EXIT_CODE STREQUAL "0")
endif() endif()
# Run vtk.js converter # Run vtk.js converter
if(VIS_FILES)
execute_process(COMMAND cmake -E make_directory ${VTKJS_OUTPUT_PATH})
endif()
foreach(FILE ${VIS_FILES}) foreach(FILE ${VIS_FILES})
execute_process( execute_process(
COMMAND ${VTKJS_CONVERTER} -e -i ${BINARY_PATH}/${FILE} -o ${BINARY_PATH}/vtk-js COMMAND ${VTKJS_CONVERTER} -e -i ${BINARY_PATH}/${FILE} -o ${VTKJS_OUTPUT_PATH}
) )
endforeach() endforeach()
...@@ -4,6 +4,9 @@ bin/ ...@@ -4,6 +4,9 @@ bin/
public/ public/
themes/ogs/static themes/ogs/static
import/secret.py import/secret.py
static/
test.md
test.jpg
# Generated from Contentful # Generated from Contentful
content/internal content/internal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment