-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextension.cmake
More file actions
31 lines (26 loc) · 1.67 KB
/
extension.cmake
File metadata and controls
31 lines (26 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#-----------------------------------------------------------------------------
# Extension meta-information
set(EXTENSION_HOMEPAGE "https://github.com/KitwareMedical/SlicerLayerDisplayableManager")
set(EXTENSION_CONTRIBUTORS "Thibault Pelletier (Kitware SAS)")
set(EXTENSION_DESCRIPTION "A 3D Slicer module introducing a new displayable manager architecture for layered rendering and interaction handling.")
set(EXTENSION_ICONURL "https://github.com/KitwareMedical/SlicerLayerDisplayableManager/raw/main/Docs/LayerDisplayableManager.png")
set(EXTENSION_SCREENSHOTURLS "https://github.com/KitwareMedical/SlicerLayerDisplayableManager/raw/main/Docs/LayeredDisplayableManager_UML.jpg")
set(EXTENSION_DEPENDS "NA") # Specified as a list or "NA" if no dependencies
#-----------------------------------------------------------------------------
# Extension dependencies
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
#-----------------------------------------------------------------------------
# Extension version (auto updated by semantic version)
set(LayerDM_VERSION "v1.2.5")
string(SUBSTRING "${LayerDM_VERSION}" 1 -1 LayerDM_VERSION) # remove first character
string(REPLACE "." ";" version_components "${LayerDM_VERSION}") # this creates a list
list(GET version_components 0 LayerDM_VERSION_MAJOR)
list(GET version_components 1 LayerDM_VERSION_MINOR)
list(GET version_components 2 LayerDM_VERSION_PATCH)
#-----------------------------------------------------------------------------
# Extension modules
add_subdirectory(LayerDM)
#-----------------------------------------------------------------------------
include(${Slicer_EXTENSION_GENERATE_CONFIG})
include(${Slicer_EXTENSION_CPACK})