Skip to content

Commit 64b6ac5

Browse files
authored
Merge pull request #370 from N-Dekker/Remove-spaces-from-CMakeLists
STYLE: Remove extra spaces between parentheses of CMake command calls
2 parents 3bca12f + 94299f9 commit 64b6ac5

File tree

212 files changed

+1708
-1708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+1708
-1708
lines changed

Documentation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
add_subdirectory( Download )
1+
add_subdirectory(Download)

Documentation/Download/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/index.rst.in
1+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/index.rst.in
22
${CMAKE_CURRENT_BINARY_DIR}/index.rst
33
)

Formatting/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in
2+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in
33
${CMAKE_CURRENT_BINARY_DIR}/conf.py
44
@ONLY
55
)

Superbuild/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
cmake_minimum_required(VERSION 3.10.2)
22

3-
if( COMMAND CMAKE_POLICY )
4-
cmake_policy( SET CMP0003 NEW )
3+
if(COMMAND CMAKE_POLICY)
4+
cmake_policy(SET CMP0003 NEW)
55
endif()
66

7-
project( ITKSphinxExamples )
7+
project(ITKSphinxExamples)
88

99
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../CMake")
1010

11-
if( CMAKE_HOST_WIN32 )
12-
string( LENGTH "${ITKSphinxExamples_SOURCE_DIR}" source_len )
13-
if( ${source_len} GREATER 30 )
14-
message( FATAL_ERROR
11+
if(CMAKE_HOST_WIN32)
12+
string(LENGTH "${ITKSphinxExamples_SOURCE_DIR}" source_len)
13+
if(${source_len} GREATER 30)
14+
message(FATAL_ERROR
1515
"The source directory is currently too long, ${source_len} characters. "
1616
"Please move the Examples build directory to a shorter path."
1717
)
1818
endif()
19-
string( LENGTH "${ITKSphinxExamples_BINARY_DIR}" binary_len )
20-
if( ${binary_len} GREATER 30 )
21-
message( FATAL_ERROR
19+
string(LENGTH "${ITKSphinxExamples_BINARY_DIR}" binary_len)
20+
if(${binary_len} GREATER 30)
21+
message(FATAL_ERROR
2222
"The build directory is currently too long, ${binary_len} characters. "
2323
"Please set the Examples build directory to a shorter path."
2424
)
2525
endif()
2626
endif()
2727

28-
include( ${CMAKE_SOURCE_DIR}/Superbuild.cmake )
28+
include(${CMAKE_SOURCE_DIR}/Superbuild.cmake)

Utilities/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
configure_file( ${ITKSphinxExamples_SOURCE_DIR}/Utilities/CodeSwarm.sh.in
1+
configure_file(${ITKSphinxExamples_SOURCE_DIR}/Utilities/CodeSwarm.sh.in
22
${ITKSphinxExamples_BINARY_DIR}/Utilities/CodeSwarm.sh
33
@ONLY
44
)
55

6-
if( BUILD_DOCUMENTATION )
6+
if(BUILD_DOCUMENTATION)
77
file(COPY ${ITKSphinxExamples_SOURCE_DIR}/Utilities/SphinxExtensions/breathe/documentation/source/_static/breathe.css
88
DESTINATION ${ITKSphinxExamples_BINARY_DIR}/html/_static
99
)

Utilities/CookieCutter/{{cookiecutter.example_name}}/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
cmake_minimum_required(VERSION 3.10.2)
22

3-
project( {{ cookiecutter.example_name }} )
3+
project({{ cookiecutter.example_name }})
44

5-
find_package( ITK REQUIRED )
6-
include( ${ITK_USE_FILE} )
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
77

8-
add_executable( {{ cookiecutter.example_name }} Code.cxx )
9-
target_link_libraries( {{ cookiecutter.example_name }} ${ITK_LIBRARIES} )
8+
add_executable({{ cookiecutter.example_name }} Code.cxx)
9+
target_link_libraries({{ cookiecutter.example_name }} ${ITK_LIBRARIES})
1010

11-
install( TARGETS {{ cookiecutter.example_name }}
11+
install(TARGETS {{ cookiecutter.example_name }}
1212
DESTINATION bin/ITKSphinxExamples/{{ cookiecutter.group_name }}/{{ cookiecutter.module_name }}
1313
COMPONENT Runtime
1414
)
1515

16-
install( FILES Code.cxx CMakeLists.txt Code.py
16+
install(FILES Code.cxx CMakeLists.txt Code.py
1717
DESTINATION share/ITKSphinxExamples/Code/{{ cookiecutter.group_name }}/{{ cookiecutter.module_name }}/{{ cookiecutter.example_name }}
1818
COMPONENT Code
1919
)
@@ -25,17 +25,17 @@ set(output_image Output.png)
2525
set(test_options)
2626

2727

28-
add_test( NAME {{ cookiecutter.example_name }}Test
28+
add_test(NAME {{ cookiecutter.example_name }}Test
2929
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/{{ cookiecutter.example_name }}
3030
${input_image}
3131
${output_image}
3232
${test_options}
3333
)
3434

35-
if( ITK_WRAP_PYTHON )
35+
if(ITK_WRAP_PYTHON)
3636
find_package(PythonInterp REQUIRED)
37-
string( REPLACE . "Python." output_image "${output_image}" )
38-
add_test( NAME {{ cookiecutter.example_name }}TestPython
37+
string(REPLACE . "Python." output_image "${output_image}")
38+
add_test(NAME {{ cookiecutter.example_name }}TestPython
3939
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
4040
${input_image}
4141
${output_image}

src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
cmake_minimum_required(VERSION 3.16.3)
22

3-
project( VisualizeEvolvingDense2DLevelSetAsElevationMap )
3+
project(VisualizeEvolvingDense2DLevelSetAsElevationMap)
44

5-
find_package( ITK REQUIRED )
6-
include( ${ITK_USE_FILE} )
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
77

8-
add_executable( VisualizeEvolvingDense2DLevelSetAsElevationMap Code.cxx)
9-
target_link_libraries( VisualizeEvolvingDense2DLevelSetAsElevationMap ${ITK_LIBRARIES} )
8+
add_executable(VisualizeEvolvingDense2DLevelSetAsElevationMap Code.cxx)
9+
target_link_libraries(VisualizeEvolvingDense2DLevelSetAsElevationMap ${ITK_LIBRARIES})
1010

11-
install( TARGETS VisualizeEvolvingDense2DLevelSetAsElevationMap
11+
install(TARGETS VisualizeEvolvingDense2DLevelSetAsElevationMap
1212
DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
1313
COMPONENT Runtime
1414
)
1515

16-
install( FILES Code.cxx CMakeLists.txt
16+
install(FILES Code.cxx CMakeLists.txt
1717
DESTINATION share/ITKSphinxExamples/Code/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap
1818
COMPONENT Code
1919
)
2020

2121
enable_testing()
22-
add_test( NAME VisualizeEvolvingDense2DLevelSetAsElevationMapTest
22+
add_test(NAME VisualizeEvolvingDense2DLevelSetAsElevationMapTest
2323
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeEvolvingDense2DLevelSetAsElevationMap
2424
${CMAKE_CURRENT_BINARY_DIR}/cells.png
2525
100

src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
cmake_minimum_required(VERSION 3.16.3)
22

3-
project( VisualizeEvolvingDense2DLevelSetZeroSet )
3+
project(VisualizeEvolvingDense2DLevelSetZeroSet)
44

5-
find_package( ITK REQUIRED )
6-
include( ${ITK_USE_FILE} )
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
77

8-
add_executable( VisualizeEvolvingDense2DLevelSetZeroSet Code.cxx)
9-
target_link_libraries( VisualizeEvolvingDense2DLevelSetZeroSet ${ITK_LIBRARIES} )
8+
add_executable(VisualizeEvolvingDense2DLevelSetZeroSet Code.cxx)
9+
target_link_libraries(VisualizeEvolvingDense2DLevelSetZeroSet ${ITK_LIBRARIES})
1010

11-
install( TARGETS VisualizeEvolvingDense2DLevelSetZeroSet
11+
install(TARGETS VisualizeEvolvingDense2DLevelSetZeroSet
1212
DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
1313
COMPONENT Runtime
1414
)
1515

16-
install( FILES Code.cxx CMakeLists.txt
16+
install(FILES Code.cxx CMakeLists.txt
1717
DESTINATION share/ITKSphinxExamples/Code/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet
1818
COMPONENT Code
1919
)
2020

2121
enable_testing()
22-
add_test( NAME VisualizeEvolvingDense2DLevelSetZeroSetTest
22+
add_test(NAME VisualizeEvolvingDense2DLevelSetZeroSetTest
2323
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeEvolvingDense2DLevelSetZeroSet
2424
${CMAKE_CURRENT_BINARY_DIR}/cells.png
2525
100

src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
cmake_minimum_required(VERSION 3.16.3)
22

3-
project( VisualizeStaticDense2DLevelSetAsElevationMap )
3+
project(VisualizeStaticDense2DLevelSetAsElevationMap)
44

5-
find_package( ITK REQUIRED )
6-
include( ${ITK_USE_FILE} )
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
77

88
find_package(VTK REQUIRED)
99
set(_vtk_prefix "")
1010
if(VTK_VERSION VERSION_LESS "8.90.0")
1111
set(_vtk_prefix "vtk")
1212
endif()
13-
find_package( VTK REQUIRED
13+
find_package(VTK REQUIRED
1414
COMPONENTS
1515
${_vtk_prefix}InteractionImage
1616
${_vtk_prefix}RenderingCore
1717
${_vtk_prefix}RenderingGL2PSOpenGL2
1818
)
19-
if( VTK_VERSION VERSION_LESS "8.90.0" )
20-
include( ${VTK_USE_FILE} )
19+
if(VTK_VERSION VERSION_LESS "8.90.0")
20+
include(${VTK_USE_FILE})
2121
endif()
2222

23-
add_executable( VisualizeStaticDense2DLevelSetAsElevationMap Code.cxx )
24-
target_link_libraries( VisualizeStaticDense2DLevelSetAsElevationMap ${ITK_LIBRARIES} ${VTK_LIBRARIES})
23+
add_executable(VisualizeStaticDense2DLevelSetAsElevationMap Code.cxx)
24+
target_link_libraries(VisualizeStaticDense2DLevelSetAsElevationMap ${ITK_LIBRARIES} ${VTK_LIBRARIES})
2525

26-
if( NOT VTK_VERSION VERSION_LESS "8.90.0" )
26+
if(NOT VTK_VERSION VERSION_LESS "8.90.0")
2727
vtk_module_autoinit(
2828
TARGETS VisualizeStaticDense2DLevelSetAsElevationMap
2929
MODULES ${VTK_LIBRARIES}
3030
)
3131
endif()
3232

33-
install( TARGETS VisualizeStaticDense2DLevelSetAsElevationMap
33+
install(TARGETS VisualizeStaticDense2DLevelSetAsElevationMap
3434
DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
3535
COMPONENT Runtime
3636
)
3737

38-
install( FILES Code.cxx CMakeLists.txt
38+
install(FILES Code.cxx CMakeLists.txt
3939
DESTINATION share/ITKSphinxExamples/Code/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap
4040
COMPONENT Code
4141
)
4242

4343
enable_testing()
44-
add_test( NAME VisualizeStaticDense2DLevelSetAsElevationMapTest
44+
add_test(NAME VisualizeStaticDense2DLevelSetAsElevationMapTest
4545
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticDense2DLevelSetAsElevationMap
4646
${CMAKE_CURRENT_BINARY_DIR}/cells.png
4747
0

src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
cmake_minimum_required(VERSION 3.16.3)
22

3-
project( VisualizeStaticDense2DLevelSetZeroSet )
3+
project(VisualizeStaticDense2DLevelSetZeroSet)
44

5-
find_package( ITK REQUIRED )
6-
include( ${ITK_USE_FILE} )
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
77

88
find_package(VTK REQUIRED)
99
set(_vtk_prefix "")
1010
if(VTK_VERSION VERSION_LESS "8.90.0")
1111
set(_vtk_prefix "vtk")
1212
endif()
13-
find_package( VTK REQUIRED
13+
find_package(VTK REQUIRED
1414
COMPONENTS
1515
${_vtk_prefix}RenderingCore
1616
${_vtk_prefix}RenderingGL2PSOpenGL2
1717
)
18-
if( VTK_VERSION VERSION_LESS "8.90.0" )
19-
include( ${VTK_USE_FILE} )
18+
if(VTK_VERSION VERSION_LESS "8.90.0")
19+
include(${VTK_USE_FILE})
2020
endif()
2121

22-
add_executable( VisualizeStaticDense2DLevelSetZeroSet Code.cxx )
23-
target_link_libraries( VisualizeStaticDense2DLevelSetZeroSet ${ITK_LIBRARIES} ${VTK_LIBRARIES} )
22+
add_executable(VisualizeStaticDense2DLevelSetZeroSet Code.cxx)
23+
target_link_libraries(VisualizeStaticDense2DLevelSetZeroSet ${ITK_LIBRARIES} ${VTK_LIBRARIES})
2424

25-
if( NOT VTK_VERSION VERSION_LESS "8.90.0" )
25+
if(NOT VTK_VERSION VERSION_LESS "8.90.0")
2626
vtk_module_autoinit(
2727
TARGETS VisualizeStaticDense2DLevelSetZeroSet
2828
MODULES ${VTK_LIBRARIES}
2929
)
3030
endif()
3131

32-
install( TARGETS VisualizeStaticDense2DLevelSetZeroSet
32+
install(TARGETS VisualizeStaticDense2DLevelSetZeroSet
3333
DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
3434
COMPONENT Runtime
3535
)
3636

37-
install( FILES Code.cxx CMakeLists.txt
37+
install(FILES Code.cxx CMakeLists.txt
3838
DESTINATION share/ITKSphinxExamples/Code/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet
3939
COMPONENT Code
4040
)
4141

4242
enable_testing()
43-
add_test( NAME VisualizeStaticDense2DLevelSetZeroSetTest
43+
add_test(NAME VisualizeStaticDense2DLevelSetZeroSetTest
4444
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticDense2DLevelSetZeroSet
4545
${CMAKE_CURRENT_BINARY_DIR}/cells.png
4646
0

0 commit comments

Comments
 (0)