forked from Slicer/LandmarkRegistration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (42 loc) · 1.48 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
cmake_minimum_required(VERSION 3.13.4)
#-----------------------------------------------------------------------------
set(MODULE_NAME LandmarkRegistration)
set(LIB_NAME RegistrationLib)
#-----------------------------------------------------------------------------
if(NOT Slicer_SOURCE_DIR)
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
endif()
#-----------------------------------------------------------------------------
set(MODULE_PYTHON_SCRIPTS
${MODULE_NAME}.py
${LIB_NAME}/__init__.py
${LIB_NAME}/AffinePlugin.py
${LIB_NAME}/Landmarks.py
${LIB_NAME}/LocalBRAINSFitPlugin.py
${LIB_NAME}/LocalSimpleITKPlugin.py
${LIB_NAME}/RegistrationPlugin.py
${LIB_NAME}/RegistrationState.py
${LIB_NAME}/ThinPlatePlugin.py
${LIB_NAME}/Visualization.py
${LIB_NAME}/pqWidget.py
)
set(MODULE_PYTHON_RESOURCES
Resources/Icons/LandmarkRegistration.png
Resources/Icons/icon_Add.png
Resources/Icons/icon_Active.png
Resources/Icons/icon_Trash.png
)
#-----------------------------------------------------------------------------
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 LandmarkRegistration.py)
endif()