Skip to content

Commit 842ebc1

Browse files
committed
style: Unify formatting in CMake file
1 parent 21eba01 commit 842ebc1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ option(PYTHON_BINDINGS "Building Python bindings" OFF)
55
option(BUILD_TESTING "Build unit and integration tests" OFF)
66
option(SETUP_TEST_IFNAME "Set-up the test VCAN interface automatically" OFF)
77

8-
if (CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTING)
8+
if(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTING)
99
option(ENABLE_COVERAGE "Enable coverage reporting for GCC/Clang" OFF)
1010

11-
if (ENABLE_COVERAGE)
11+
if(ENABLE_COVERAGE)
1212
message(STATUS "Building with coverage reporting for GCC/Clang.")
1313
add_compile_options(--coverage -O0)
1414
link_libraries(--coverage)
@@ -42,8 +42,7 @@ set(MYACTUATOR_RMD_LIBRARIES "")
4242
target_link_libraries(myactuator_rmd PUBLIC
4343
${MYACTUATOR_RMD_LIBRARIES}
4444
)
45-
install(
46-
DIRECTORY include/
45+
install(DIRECTORY include/
4746
DESTINATION include/
4847
)
4948
install(TARGETS myactuator_rmd
@@ -83,7 +82,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
8382
enable_testing()
8483

8584
find_package(Boost 1.40.0 QUIET COMPONENTS program_options)
86-
if (Boost_PROGRAM_OPTIONS_FOUND)
85+
if(Boost_PROGRAM_OPTIONS_FOUND)
8786
add_executable(can_node
8887
test/can_node.cpp
8988
)
@@ -121,15 +120,14 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
121120
)
122121
set_tests_properties(${noArgsTests} PROPERTIES TIMEOUT 10)
123122

124-
if (SETUP_TEST_IFNAME)
123+
if(SETUP_TEST_IFNAME)
125124
set(VCAN_IFNAME "vcan_test")
126125
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
127126
endif()
128127
endif()
129128

130129
if(ament_cmake_FOUND)
131-
ament_export_targets(
132-
${PROJECT_NAME}Targets
130+
ament_export_targets(${PROJECT_NAME}Targets
133131
HAS_LIBRARY_TARGET
134132
)
135133
ament_package()

0 commit comments

Comments
 (0)