Skip to content

Commit d248671

Browse files
authored
Merge pull request #258 from mseng10/line-spatial-object
2 parents cb86c2a + 8dd5e76 commit d248671

File tree

7 files changed

+33
-34
lines changed

7 files changed

+33
-34
lines changed

src/Core/SpatialObjects/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ compare_to_baseline(EXAMPLE_NAME Ellipse
88
BASELINE_PREFIX EllipseOutput
99
)
1010

11-
add_example(LineSpatialObject)
12-
compare_to_baseline(EXAMPLE_NAME LineSpatialObject
11+
add_example(CreateALineSpatialObject)
12+
compare_to_baseline(EXAMPLE_NAME CreateALineSpatialObject
1313
BASELINE_PREFIX line
1414
)
1515

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cmake_minimum_required(VERSION 3.10.2)
2+
3+
project(CreateALineSpatialObject)
4+
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
7+
8+
9+
add_executable(CreateALineSpatialObject Code.cxx)
10+
target_link_libraries(CreateALineSpatialObject ${ITK_LIBRARIES})
11+
12+
install(TARGETS CreateALineSpatialObject
13+
DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
14+
COMPONENT Runtime
15+
)
16+
17+
install(FILES Code.cxx CMakeLists.txt
18+
DESTINATION share/ITKSphinxExamples/Code/Core/SpatialObjects/CreateALineSpatialObject/
19+
COMPONENT Code
20+
)
21+
22+
23+
enable_testing()
24+
add_test(NAME CreateALineSpatialObjectTest
25+
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateALineSpatialObject)
26+

src/Core/SpatialObjects/LineSpatialObject/Documentation.rst renamed to src/Core/SpatialObjects/CreateALineSpatialObject/Documentation.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Line Spatial Object
2-
===================
1+
Create a Line Spatial Object
2+
============================
33

44
.. index::
55
single: LineSpatialObject
@@ -30,6 +30,5 @@ C++
3030

3131
Classes demonstrated
3232
--------------------
33-
.. [TODO: This will need to be uncommented once PR #186 is merged and the official documentation is updated
34-
.. [breathelink:: itk::LineSpatialObject
35-
.. [breathelink:: itk::LineSpatialObjectPoint
33+
.. breathelink:: itk::LineSpatialObject
34+
.. breathelink:: itk::LineSpatialObjectPoint

src/Core/SpatialObjects/LineSpatialObject/CMakeLists.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Core/SpatialObjects/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ SpatialObjects
77
Blob/Documentation.rst
88
ContourSpatialObject/Documentation.rst
99
ConvertSpatialObjectToImage/Documentation.rst
10+
CreateALineSpatialObject/Documentation.rst
1011
Ellipse/Documentation.rst
11-
LineSpatialObject/Documentation.rst

0 commit comments

Comments
 (0)