Skip to content

Commit e5213e9

Browse files
[cicd] improve format check
1 parent 43666bf commit e5213e9

File tree

7 files changed

+182
-58
lines changed

7 files changed

+182
-58
lines changed

.github/workflows/format.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ jobs:
2929
-o -iwholename "./support/print" \
3030
| xargs \
3131
clang-format-16 --Werror --dry-run --verbose -style=file
32-
cmake-format --check CMakeLists.txt
32+
find . \
33+
-iname "CMakeLists.txt" \
34+
-o -iname "*.cmake.in" \
35+
| xargs \
36+
cmake-format --check

cmake/kalman-config.cmake.in

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
#[[ __ _ __ __ _ _
2-
| |/ / /\ | | | \/ | /\ | \ | |
3-
| ' / / \ | | | \ / | / \ | \| |
4-
| < / /\ \ | | | |\/| | / /\ \ | . ` |
5-
| . \ / ____ \| |____| | | |/ ____ \| |\ |
6-
|_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
7-
8-
Kalman Filter
9-
Version 0.2.0
10-
https://github.com/FrancoisCarouge/Kalman
11-
12-
SPDX-License-Identifier: Unlicense
13-
14-
This is free and unencumbered software released into the public domain.
15-
16-
Anyone is free to copy, modify, publish, use, compile, sell, or
17-
distribute this software, either in source code form or as a compiled
18-
binary, for any purpose, commercial or non-commercial, and by any
19-
means.
20-
21-
In jurisdictions that recognize copyright laws, the author or authors
22-
of this software dedicate any and all copyright interest in the
23-
software to the public domain. We make this dedication for the benefit
24-
of the public at large and to the detriment of our heirs and
25-
successors. We intend this dedication to be an overt act of
26-
relinquishment in perpetuity of all present and future rights to this
27-
software under copyright law.
28-
29-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35-
OTHER DEALINGS IN THE SOFTWARE.
36-
37-
For more information, please refer to <https://unlicense.org> ]]
38-
39-
include("${CMAKE_CURRENT_LIST_DIR}/kalman-target.cmake")
1+
#[[ __ _ __ __ _ _
2+
| |/ / /\ | | | \/ | /\ | \ | |
3+
| ' / / \ | | | \ / | / \ | \| |
4+
| < / /\ \ | | | |\/| | / /\ \ | . ` |
5+
| . \ / ____ \| |____| | | |/ ____ \| |\ |
6+
|_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
7+
8+
Kalman Filter
9+
Version 0.2.0
10+
https://github.com/FrancoisCarouge/Kalman
11+
12+
SPDX-License-Identifier: Unlicense
13+
14+
This is free and unencumbered software released into the public domain.
15+
16+
Anyone is free to copy, modify, publish, use, compile, sell, or
17+
distribute this software, either in source code form or as a compiled
18+
binary, for any purpose, commercial or non-commercial, and by any
19+
means.
20+
21+
In jurisdictions that recognize copyright laws, the author or authors
22+
of this software dedicate any and all copyright interest in the
23+
software to the public domain. We make this dedication for the benefit
24+
of the public at large and to the detriment of our heirs and
25+
successors. We intend this dedication to be an overt act of
26+
relinquishment in perpetuity of all present and future rights to this
27+
software under copyright law.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35+
OTHER DEALINGS IN THE SOFTWARE.
36+
37+
For more information, please refer to <https://unlicense.org> ]]
38+
39+
include("${CMAKE_CURRENT_LIST_DIR}/kalman-target.cmake")

linalg/CMakeLists.txt

+3-17
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ OTHER DEALINGS IN THE SOFTWARE.
3636
3737
For more information, please refer to <https://unlicense.org> ]]
3838

39-
FetchContent_Declare(
40-
eigen
41-
GIT_REPOSITORY "https://gitlab.com/libeigen/eigen"
42-
FIND_PACKAGE_ARGS NAMES Eigen3)
43-
FetchContent_MakeAvailable(eigen)
44-
45-
add_library(kalman_linalg_eigen INTERFACE)
46-
target_include_directories(kalman_linalg_eigen INTERFACE "eigen")
47-
target_link_libraries(kalman_linalg_eigen INTERFACE Eigen3::Eigen kalman)
48-
49-
add_library(kalman_linalg_lazy INTERFACE)
50-
target_include_directories(kalman_linalg_lazy INTERFACE "lazy")
51-
target_link_libraries(kalman_linalg_lazy INTERFACE kalman kalman_generator)
52-
53-
add_library(kalman_linalg_naive INTERFACE)
54-
target_include_directories(kalman_linalg_naive INTERFACE "naive")
55-
target_link_libraries(kalman_linalg_naive INTERFACE kalman)
39+
add_subdirectory("eigen")
40+
add_subdirectory("lazy")
41+
add_subdirectory("naive")

linalg/eigen/CMakeLists.txt

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#[[ __ _ __ __ _ _
2+
| |/ / /\ | | | \/ | /\ | \ | |
3+
| ' / / \ | | | \ / | / \ | \| |
4+
| < / /\ \ | | | |\/| | / /\ \ | . ` |
5+
| . \ / ____ \| |____| | | |/ ____ \| |\ |
6+
|_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
7+
8+
Kalman Filter
9+
Version 0.2.0
10+
https://github.com/FrancoisCarouge/Kalman
11+
12+
SPDX-License-Identifier: Unlicense
13+
14+
This is free and unencumbered software released into the public domain.
15+
16+
Anyone is free to copy, modify, publish, use, compile, sell, or
17+
distribute this software, either in source code form or as a compiled
18+
binary, for any purpose, commercial or non-commercial, and by any
19+
means.
20+
21+
In jurisdictions that recognize copyright laws, the author or authors
22+
of this software dedicate any and all copyright interest in the
23+
software to the public domain. We make this dedication for the benefit
24+
of the public at large and to the detriment of our heirs and
25+
successors. We intend this dedication to be an overt act of
26+
relinquishment in perpetuity of all present and future rights to this
27+
software under copyright law.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35+
OTHER DEALINGS IN THE SOFTWARE.
36+
37+
For more information, please refer to <https://unlicense.org> ]]
38+
39+
FetchContent_Declare(
40+
eigen
41+
GIT_REPOSITORY "https://gitlab.com/libeigen/eigen"
42+
FIND_PACKAGE_ARGS NAMES Eigen3)
43+
FetchContent_MakeAvailable(eigen)
44+
45+
add_library(kalman_linalg_eigen INTERFACE)
46+
target_sources(
47+
kalman_linalg_eigen INTERFACE FILE_SET "linalg_headers" TYPE "HEADERS" FILES
48+
"fcarouge/linalg.hpp")
49+
target_link_libraries(kalman_linalg_eigen INTERFACE Eigen3::Eigen kalman)

linalg/lazy/CMakeLists.txt

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#[[ __ _ __ __ _ _
2+
| |/ / /\ | | | \/ | /\ | \ | |
3+
| ' / / \ | | | \ / | / \ | \| |
4+
| < / /\ \ | | | |\/| | / /\ \ | . ` |
5+
| . \ / ____ \| |____| | | |/ ____ \| |\ |
6+
|_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
7+
8+
Kalman Filter
9+
Version 0.2.0
10+
https://github.com/FrancoisCarouge/Kalman
11+
12+
SPDX-License-Identifier: Unlicense
13+
14+
This is free and unencumbered software released into the public domain.
15+
16+
Anyone is free to copy, modify, publish, use, compile, sell, or
17+
distribute this software, either in source code form or as a compiled
18+
binary, for any purpose, commercial or non-commercial, and by any
19+
means.
20+
21+
In jurisdictions that recognize copyright laws, the author or authors
22+
of this software dedicate any and all copyright interest in the
23+
software to the public domain. We make this dedication for the benefit
24+
of the public at large and to the detriment of our heirs and
25+
successors. We intend this dedication to be an overt act of
26+
relinquishment in perpetuity of all present and future rights to this
27+
software under copyright law.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35+
OTHER DEALINGS IN THE SOFTWARE.
36+
37+
For more information, please refer to <https://unlicense.org> ]]
38+
39+
add_library(kalman_linalg_lazy INTERFACE)
40+
target_sources(
41+
kalman_linalg_lazy INTERFACE FILE_SET "linalg_headers" TYPE "HEADERS" FILES
42+
"fcarouge/linalg.hpp")
43+
target_link_libraries(kalman_linalg_lazy INTERFACE kalman kalman_generator)

linalg/naive/CMakeLists.txt

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#[[ __ _ __ __ _ _
2+
| |/ / /\ | | | \/ | /\ | \ | |
3+
| ' / / \ | | | \ / | / \ | \| |
4+
| < / /\ \ | | | |\/| | / /\ \ | . ` |
5+
| . \ / ____ \| |____| | | |/ ____ \| |\ |
6+
|_|\_\/_/ \_\______|_| |_/_/ \_\_| \_|
7+
8+
Kalman Filter
9+
Version 0.2.0
10+
https://github.com/FrancoisCarouge/Kalman
11+
12+
SPDX-License-Identifier: Unlicense
13+
14+
This is free and unencumbered software released into the public domain.
15+
16+
Anyone is free to copy, modify, publish, use, compile, sell, or
17+
distribute this software, either in source code form or as a compiled
18+
binary, for any purpose, commercial or non-commercial, and by any
19+
means.
20+
21+
In jurisdictions that recognize copyright laws, the author or authors
22+
of this software dedicate any and all copyright interest in the
23+
software to the public domain. We make this dedication for the benefit
24+
of the public at large and to the detriment of our heirs and
25+
successors. We intend this dedication to be an overt act of
26+
relinquishment in perpetuity of all present and future rights to this
27+
software under copyright law.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35+
OTHER DEALINGS IN THE SOFTWARE.
36+
37+
For more information, please refer to <https://unlicense.org> ]]
38+
39+
add_library(kalman_linalg_naive INTERFACE)
40+
target_sources(
41+
kalman_linalg_naive INTERFACE FILE_SET "linalg_headers" TYPE "HEADERS" FILES
42+
"fcarouge/linalg.hpp")
43+
target_link_libraries(kalman_linalg_naive INTERFACE kalman)

test/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ foreach(BACKEND IN ITEMS "eigen" "lazy" "naive")
102102
endforeach()
103103
endforeach()
104104

105-
106105
foreach(BACKEND IN ITEMS "eigen")
107106
foreach(
108107
TEST

0 commit comments

Comments
 (0)