Skip to content

Commit

Permalink
ENH: Move wasm/ to top level
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
thewtex committed Feb 14, 2023
1 parent 58730f9 commit 4c3df79
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 484 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -5,6 +5,10 @@ if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
if(WASI OR EMSCRIPTEN)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(wasm)
endif()
else()
set(ITK_DIR ${CMAKE_BINARY_DIR})
itk_module_impl()
Expand Down

0 comments on commit 4c3df79

Please sign in to comment.