-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
1,848 additions
and
7,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: clang-format Check | ||
on: | ||
push: | ||
branches: [ "master", "cleanup" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- 'src' | ||
- 'test/unit_tests' | ||
- 'include/core' | ||
- 'include' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '16' | ||
check-path: ${{ matrix.path }} | ||
fallback-style: 'LLVM' # optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Linux CI build | ||
|
||
on: | ||
push: | ||
branches: [ "master", "cleanup" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install (latest) eigen | ||
run: sudo apt install libeigen3-dev | ||
|
||
- name: "prepare build (production/standard), gcc" | ||
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release | ||
- name: "build" | ||
run: cmake --build build --target all --config Release -- -j4 | ||
- name: "Test" | ||
run: ctest --test-dir build | ||
|
||
- name: "prepare build (production/standard), clang++" | ||
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release | ||
- name: "build" | ||
run: cmake --build build --target all --config Release -- -j4 | ||
- name: "Test" | ||
run: ctest --test-dir build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ geodpy/ | |
# Folders | ||
doc/doxydoc/ | ||
doc/html/ | ||
build/ | ||
|
||
# Files & Folders generated by automake | ||
Makefile.in | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
project( | ||
Geodesy | ||
VERSION 1.1.0 | ||
DESCRIPTION "DSO Geodetic Library" | ||
LANGUAGES CXX) | ||
|
||
# We need Eigen | ||
find_package(Eigen3 3.3 REQUIRED) | ||
|
||
# The library | ||
add_subdirectory(src) | ||
|
||
# The tests | ||
include(CTest) | ||
add_subdirectory(test//unit_tests) | ||
enable_testing() | ||
|
||
add_compile_options( | ||
-Wall -Wextra -Werror -pedantic -W -Wshadow -march=native -DEIGEN_NO_AUTOMATIC_RESIZING | ||
$<$<CONFIG:RELEASE>:-O2 -march=native -DEIGEN_NO_AUTOMATIC_RESIZING> | ||
$<$<CONFIG:DEBUG>:-g -pg -Wdisabled-optimization -DDEBUG> | ||
) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED On) | ||
set(CMAKE_CXX_EXTENSIONS Off) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.