-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwheel.cmake
More file actions
40 lines (33 loc) · 814 Bytes
/
wheel.cmake
File metadata and controls
40 lines (33 loc) · 814 Bytes
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
option(BUILD_SDK "If ON, builds the SDK of the package." OFF)
find_package(Slicer CONFIG REQUIRED)
set(modules
SlicerLayerDM::Logic
SlicerLayerDM::MRML
SlicerLayerDM::MRMLDisplayableManager
)
include(VTKSDKPythonWheelHelper)
set(layout Runtime)
if(BUILD_SDK)
set(layout SDK)
endif()
vtksdk_build_modules(${SKBUILD_PROJECT_NAME}
MODULES ${modules}
DEPENDENCIES slicer_core
LAYOUT ${layout}
)
if(BUILD_SDK)
vtksdk_install_modules_sdk(${SKBUILD_PROJECT_NAME}
MODULES ${modules}
EXTERNAL_DEPENDENCIES Slicer
)
else()
vtksdk_generate_package_init(${SKBUILD_PROJECT_NAME}
MODULES ${modules}
DEPENDENCIES slicer_core
)
# Make this package part of the slicer meta package
install(FILES
${CMAKE_SOURCE_DIR}/Python/slicer_layer_dm.py
DESTINATION slicer
)
endif()