Skip to content

Commit 1959755

Browse files
committed
Format CMakeLists.txts
1 parent 4c35c72 commit 1959755

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ add_subdirectory(tools)
4141
include(GNUInstallDirs)
4242
install(FILES
4343
${CMAKE_CURRENT_SOURCE_DIR}/README.md
44-
DESTINATION
45-
${CMAKE_INSTALL_DOCDIR})
44+
DESTINATION ${CMAKE_INSTALL_DOCDIR})
4645
install(TARGETS PATO RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
4746

4847
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})

test/CMakeLists.txt

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ if(NOT BUILD_TESTING)
22
return()
33
endif()
44

5-
function(add_pato_tests MODE LABEL EXTRA_ARGS
6-
LENGTH_ARGS ERROR_ARGS MATCH_ARGS FILTER_ARGS MERGE_ARGS OUTPUT_ARGS)
5+
function(add_pato_tests
6+
MODE
7+
LABEL
8+
EXTRA_ARGS
9+
LENGTH_ARGS
10+
ERROR_ARGS
11+
MATCH_ARGS
12+
FILTER_ARGS
13+
MERGE_ARGS
14+
OUTPUT_ARGS)
715
set(counter 0)
816
foreach(len ${LENGTH_ARGS})
917
foreach(err ${ERROR_ARGS})
@@ -16,16 +24,16 @@ function(add_pato_tests MODE LABEL EXTRA_ARGS
1624
add_test(
1725
NAME ${test_name}
1826
COMMAND
19-
${CMAKE_CURRENT_SOURCE_DIR}/test.bash
20-
$<TARGET_FILE:PATO>
21-
${MODE}
22-
${counter}
23-
${EXTRA_ARGS}
24-
${len} ${err} ${mat} ${fil} ${mer} ${out})
27+
${CMAKE_CURRENT_SOURCE_DIR}/test.bash
28+
$<TARGET_FILE:PATO>
29+
${MODE}
30+
${counter}
31+
${EXTRA_ARGS}
32+
${len} ${err} ${mat} ${fil} ${mer} ${out})
2533

2634
set_tests_properties(${test_name}
2735
PROPERTIES
28-
LABELS "PATO;${LABEL}")
36+
LABELS "PATO;${LABEL}")
2937

3038
math(EXPR counter "${counter} + 1")
3139
endforeach()

0 commit comments

Comments
 (0)