Skip to content

Commit 47e05d4

Browse files
committed
BUG: Rename LineSpatialObject to CreateALineSpatialObject
In source ITK, there is an example with the same name. This changes the name to CreateALineSpatialObect to avoid duplicate target names.
1 parent 8665c93 commit 47e05d4

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
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: 2 additions & 2 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

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)