-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(structured-report-to-text): Initial pipeline addition
- Loading branch information
Showing
17 changed files
with
585 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "itk-vite-example", | ||
"version": "1.0.2", | ||
"description": "This example demonstrates how to use itk-wasm in a Rollup project that targets the browser.", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "vite --port 8080", | ||
"build": "vite build", | ||
"start:production": "vite preview --port 8080", | ||
"cypress:open": "npx cypress open", | ||
"cypress:run": "npx cypress run", | ||
"cypress:runChrome": "npx cypress run --browser chrome", | ||
"cypress:runFirefox": "npx cypress run --browser firefox", | ||
"test:debug": "start-server-and-test start http-get://localhost:8080 cypress:open", | ||
"test": "start-server-and-test start:production http-get://localhost:8080 cypress:run", | ||
"test:chrome": "start-server-and-test start:production http-get://localhost:8080 cypress:runChrome", | ||
"test:firefox": "start-server-and-test start:production http-get://localhost:8080 cypress:runFirefox" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/InsightSoftwareConsortium/itk-wasm.git" | ||
}, | ||
"keywords": [ | ||
"itk", | ||
"rollup", | ||
"vite" | ||
], | ||
"author": "Matt McCormick <[email protected]>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm/issues" | ||
}, | ||
"homepage": "https://github.com/InsightSoftwareConsortium/itk-wasm#readme", | ||
"dependencies": { | ||
"curry": "^1.2.0", | ||
"itk-image-io": "^1.0.0-b.18", | ||
"itk-mesh-io": "^1.0.0-b.18", | ||
"itk-wasm": "^1.0.0-b.18" | ||
}, | ||
"devDependencies": { | ||
"cypress": "^10.3.0", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"start-server-and-test": "^1.14.0", | ||
"vite": "^3.0.9" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(itkwasm-dicom) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
find_package(ITK REQUIRED | ||
COMPONENTS | ||
ITKDCMTK | ||
WebAssemblyInterface | ||
) | ||
include(${ITK_USE_FILE}) | ||
|
||
set(wasm_modules ) | ||
|
||
# diquant.cc required for odd linker error | ||
add_executable(structured-report-to-text structured-report-to-text.cxx diquant.cc) | ||
target_link_libraries(structured-report-to-text PUBLIC ${ITK_LIBRARIES}) | ||
list(APPEND wasm_modules "structured-report-to-text") | ||
|
||
|
||
if (WASI AND DEFINED WebAssemblyInterface_BINARY_DIR) | ||
foreach(target ${wasm_modules}) | ||
itk_module_target_label(${target}) | ||
itk_module_target_export(${target}) | ||
itk_module_target_install(${target}) | ||
set_property(TARGET ${target} | ||
PROPERTY RUNTIME_OUTPUT_DIRECTORY | ||
${WebAssemblyInterface_BINARY_DIR}/wasi-dicom | ||
) | ||
endforeach() | ||
return() | ||
endif() | ||
|
||
if (EMSCRIPTEN AND DEFINED WebAssemblyInterface_BINARY_DIR) | ||
foreach(target ${wasm_modules}) | ||
itk_module_target_label(${target}) | ||
itk_module_target_export(${target}) | ||
itk_module_target_install(${target}) | ||
set_property(TARGET ${target} | ||
PROPERTY RUNTIME_OUTPUT_DIRECTORY | ||
${WebAssemblyInterface_BINARY_DIR}/dicom | ||
) | ||
itk_module_target_label(${target}.umd) | ||
itk_module_target_export(${target}.umd) | ||
itk_module_target_install(${target}.umd) | ||
set_property(TARGET ${target}.umd | ||
PROPERTY RUNTIME_OUTPUT_DIRECTORY | ||
${WebAssemblyInterface_BINARY_DIR}/dicom | ||
) | ||
endforeach() | ||
return() | ||
endif() |
Oops, something went wrong.