-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
68 lines (58 loc) · 2.95 KB
/
CMakeLists.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cmake_minimum_required(VERSION 3.13.4)
project(SlicerDevelopmentToolbox)
#-----------------------------------------------------------------------------
# Extension meta-information
set(EXTENSION_HOMEPAGE "https://www.slicer.org/wiki/Documentation/Nightly/Extensions/SlicerDevelopmentToolbox")
set(EXTENSION_CATEGORY "Developer Tools")
set(EXTENSION_CONTRIBUTORS "Christian Herz (Brigham and Women's Hospital), Andrey Fedorov (Brigham and Women's Hospital)")
set(EXTENSION_DESCRIPTION "SlicerDevelopmentToolbox extension facilitates the development process of modules/extensions with a large variety of widgets, helpers, decorators, events, constants and mixin classes")
set(EXTENSION_ICONURL "https://raw.githubusercontent.com/QIICR/SlicerDevelopmentToolbox/master/Resources/Icons/SlicerDevelopmentToolbox.png")
set(EXTENSION_SCREENSHOTURLS "https://www.slicer.org/slicerWiki/images/0/0b/IncomingDataWindow.png https://www.slicer.org/slicerWiki/images/2/22/ModuleSettingsWidget.png https://www.slicer.org/slicerWiki/images/c/c9/RatingWindow.png https://www.slicer.org/slicerWiki/images/2/2a/TargetCreationWidget.png https://www.slicer.org/slicerWiki/images/e/ea/Watchbox.png")
#-----------------------------------------------------------------------------
# Extension dependencies
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
#-----------------------------------------------------------------------------
set(MODULE_NAME SlicerDevelopmentToolbox)
#-----------------------------------------------------------------------------
set(MODULE_PYTHON_SCRIPTS
${MODULE_NAME}.py
${MODULE_NAME}Utils/__init__.py
${MODULE_NAME}Utils/mixins.py
${MODULE_NAME}Utils/helpers.py
${MODULE_NAME}Utils/constants.py
${MODULE_NAME}Utils/decorators.py
${MODULE_NAME}Utils/metaclasses.py
${MODULE_NAME}Utils/events.py
${MODULE_NAME}Utils/exceptions.py
${MODULE_NAME}Utils/widgets.py
${MODULE_NAME}Utils/icons.py
${MODULE_NAME}Utils/buttons.py
${MODULE_NAME}Utils/module/__init__.py
${MODULE_NAME}Utils/module/base.py
${MODULE_NAME}Utils/module/session.py
${MODULE_NAME}Utils/module/logic.py
${MODULE_NAME}Utils/module/plugin.py
${MODULE_NAME}Utils/module/step.py
${MODULE_NAME}Utils/forms/__init__.py
${MODULE_NAME}Utils/forms/FormGenerator.py
${MODULE_NAME}Utils/forms/FormGeneratorFactory.py
${MODULE_NAME}Utils/forms/JSONFormGenerator.py
${MODULE_NAME}Utils/forms/FormsDialog.py
)
file(GLOB_RECURSE MODULE_PYTHON_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/Resources/Icons/*
${PROJECT_SOURCE_DIR}/Resources/UI/*
)
#-----------------------------------------------------------------------------
slicerMacroBuildScriptedModule(
NAME ${MODULE_NAME}
SCRIPTS ${MODULE_PYTHON_SCRIPTS}
RESOURCES ${MODULE_PYTHON_RESOURCES}
)
if(BUILD_TESTING)
add_subdirectory(Testing)
endif()
#-----------------------------------------------------------------------------
include(${Slicer_EXTENSION_GENERATE_CONFIG})
include(${Slicer_EXTENSION_CPACK})