-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re #1: Add sphere model from two fiducials
- Loading branch information
1 parent
1a2d3fc
commit 341d1ad
Showing
9 changed files
with
605 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.13.4) | ||
|
||
project(MarkupToModel) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Extension meta-information | ||
set(EXTENSION_HOMEPAGE "https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MarkupToModel") | ||
set(EXTENSION_CATEGORY "Examples") | ||
set(EXTENSION_CONTRIBUTORS "Chris Yeung, , ") | ||
set(EXTENSION_DESCRIPTION "This is an example of a simple extension") | ||
set(EXTENSION_ICONURL "http://www.example.com/Slicer/Extensions/MarkupToModel.png") | ||
set(EXTENSION_SCREENSHOTURLS "http://www.example.com/Slicer/Extensions/MarkupToModel/Screenshots/1.png") | ||
set(EXTENSION_DEPENDS "NA") # Specified as a list or "NA" if no dependencies | ||
|
||
#----------------------------------------------------------------------------- | ||
# Extension dependencies | ||
find_package(Slicer REQUIRED) | ||
include(${Slicer_USE_FILE}) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Extension modules | ||
add_subdirectory(MarkupToModel) | ||
## NEXT_MODULE | ||
|
||
#----------------------------------------------------------------------------- | ||
include(${Slicer_EXTENSION_GENERATE_CONFIG}) | ||
include(${Slicer_EXTENSION_CPACK}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
#----------------------------------------------------------------------------- | ||
set(MODULE_NAME MarkupToModel) | ||
|
||
#----------------------------------------------------------------------------- | ||
set(MODULE_PYTHON_SCRIPTS | ||
${MODULE_NAME}.py | ||
) | ||
|
||
set(MODULE_PYTHON_RESOURCES | ||
Resources/Icons/${MODULE_NAME}.png | ||
Resources/UI/${MODULE_NAME}.ui | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
slicerMacroBuildScriptedModule( | ||
NAME ${MODULE_NAME} | ||
SCRIPTS ${MODULE_PYTHON_SCRIPTS} | ||
RESOURCES ${MODULE_PYTHON_RESOURCES} | ||
WITH_GENERIC_TESTS | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
if(BUILD_TESTING) | ||
|
||
# Register the unittest subclass in the main script as a ctest. | ||
# Note that the test will also be available at runtime. | ||
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py) | ||
|
||
# Additional build-time testing | ||
add_subdirectory(Testing) | ||
endif() |
Oops, something went wrong.