Skip to content

Commit 4c3df79

Browse files
committed
ENH: Move wasm/ to top level
This allows us to build the ITK module sources and use the current ITK module sources in the wasm build (as opposed to the Docker image contents).
1 parent 58730f9 commit 4c3df79

File tree

8 files changed

+20
-484
lines changed

8 files changed

+20
-484
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ if(NOT ITK_SOURCE_DIR)
55
find_package(ITK REQUIRED)
66
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
77
include(ITKModuleExternal)
8+
if(WASI OR EMSCRIPTEN)
9+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
10+
add_subdirectory(wasm)
11+
endif()
812
else()
913
set(ITK_DIR ${CMAKE_BINARY_DIR})
1014
itk_module_impl()

0 commit comments

Comments
 (0)