Skip to content

Commit 86f248d

Browse files
committed
Add CMakeLists
1 parent 08fffe9 commit 86f248d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cmake_minimum_required(VERSION 3.13.4)
2+
3+
project(PyTorch)
4+
5+
#-----------------------------------------------------------------------------
6+
# Extension meta-information
7+
set(EXTENSION_HOMEPAGE "https://www.slicer.org/wiki/Documentation/Nightly/Extensions/PyTorch")
8+
set(EXTENSION_CATEGORY "")
9+
set(EXTENSION_CONTRIBUTORS "Fernando Perez-Garcia (University College London and King's College London)")
10+
set(EXTENSION_DESCRIPTION "This is an example of a simple extension")
11+
set(EXTENSION_ICONURL "http://www.example.com/Slicer/Extensions/PyTorch.png")
12+
set(EXTENSION_SCREENSHOTURLS "http://www.example.com/Slicer/Extensions/PyTorch/Screenshots/1.png")
13+
set(EXTENSION_DEPENDS "NA") # Specified as a list or "NA" if no dependencies
14+
15+
#-----------------------------------------------------------------------------
16+
# Extension dependencies
17+
find_package(Slicer REQUIRED)
18+
include(${Slicer_USE_FILE})
19+
20+
#-----------------------------------------------------------------------------
21+
# Extension modules
22+
add_subdirectory(PyTorchUtils)
23+
## NEXT_MODULE
24+
25+
#-----------------------------------------------------------------------------
26+
include(${Slicer_EXTENSION_GENERATE_CONFIG})
27+
include(${Slicer_EXTENSION_CPACK})

0 commit comments

Comments
 (0)