Skip to content

Commit cf4d0f0

Browse files
authored
Merge pull request #2 from SCIInstitute/basic-version
Basic version
2 parents e55faea + 00fcfc9 commit cf4d0f0

File tree

9 files changed

+1132
-0
lines changed

9 files changed

+1132
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,5 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161+
162+
.DS_Store

CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cmake_minimum_required(VERSION 3.16.3...3.19.7 FATAL_ERROR)
2+
3+
project(ShapeworksSlicer)
4+
5+
#-----------------------------------------------------------------------------
6+
# Extension meta-information
7+
set(EXTENSION_HOMEPAGE "https://www.slicer.org/wiki/Documentation/Nightly/Extensions/ShapeworksSlicer")
8+
set(EXTENSION_CATEGORY "Examples")
9+
set(EXTENSION_CONTRIBUTORS "Daniel White (SCI Institute)")
10+
set(EXTENSION_DESCRIPTION "This is an example of a simple extension")
11+
set(EXTENSION_ICONURL "https://www.example.com/Slicer/Extensions/ShapeworksSlicer.png")
12+
set(EXTENSION_SCREENSHOTURLS "https://www.example.com/Slicer/Extensions/ShapeworksSlicer/Screenshots/1.png")
13+
set(EXTENSION_DEPENDS "NA") # Specified as a list or "NA" if no dependencies
14+
15+
#-----------------------------------------------------------------------------
16+
# Extension dependencies
17+
find_package(Slicer REQUIRED)
18+
include(${Slicer_USE_FILE})
19+
20+
#-----------------------------------------------------------------------------
21+
# Extension modules
22+
add_subdirectory(ShapeworksRunner)
23+
## NEXT_MODULE
24+
25+
#-----------------------------------------------------------------------------
26+
include(${Slicer_EXTENSION_GENERATE_CONFIG})
27+
include(${Slicer_EXTENSION_CPACK})

ShapeworksRunner/CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#-----------------------------------------------------------------------------
2+
set(MODULE_NAME ShapeworksRunner)
3+
4+
#-----------------------------------------------------------------------------
5+
set(MODULE_PYTHON_SCRIPTS
6+
${MODULE_NAME}.py
7+
)
8+
9+
set(MODULE_PYTHON_RESOURCES
10+
Resources/Icons/${MODULE_NAME}.png
11+
Resources/UI/${MODULE_NAME}.ui
12+
)
13+
14+
#-----------------------------------------------------------------------------
15+
slicerMacroBuildScriptedModule(
16+
NAME ${MODULE_NAME}
17+
SCRIPTS ${MODULE_PYTHON_SCRIPTS}
18+
RESOURCES ${MODULE_PYTHON_RESOURCES}
19+
WITH_GENERIC_TESTS
20+
)
21+
22+
#-----------------------------------------------------------------------------
23+
if(BUILD_TESTING)
24+
25+
# Register the unittest subclass in the main script as a ctest.
26+
# Note that the test will also be available at runtime.
27+
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py)
28+
29+
# Additional build-time testing
30+
add_subdirectory(Testing)
31+
endif()
Loading

0 commit comments

Comments
 (0)