Skip to content

Conversation

@akleeman
Copy link
Contributor

Move all the code to an include directory to allow for more conventional use.

Thanks @martin-swift for the cmake makeover!

CMakeLists.txt Outdated
)


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -fexceptions -frtti")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to fix that too? take a look at what I did in orion...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just not pushed...?

#define ALBATROSS_RANSAC_H

#include "models/ransac.h"
#include "Core"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... interesting. Totally legit, but I always like to make things consistent; looks like we've done <albatross/Core> in other places, like Tune.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is better. If it's a relative path should it be "Core"? or <albatross/Core>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "Core", since it actually is local. Unless you think these files might move into different directories.

@martin-swift
Copy link
Contributor

Also, not seeing where the dependency on the math library is captured. How are the examples linking? Do those specific examples just happen to not use the math library? Trying pulling "m" out of the unit test link libraries and see what happens...

CMakeLists.txt Outdated

add_subdirectory(tests)
add_subdirectory(examples)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would set the compile flags above the add_subdirectory(*) and the move the actually setting of the compile options to the CMake where those targets are created because what could (is going to) happen eventually is someone is going to add a target in one of those subdirectories an not realize they also need to add it to albatross_BINARIES.

message(STATUS "Found: ${CLANG_FORMAT_PATH}")
endif()
find_program(CLANG_FORMAT NAMES
clang-format-3.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? I thought we went 4.0 and 6.0? I can't even get 3.8 on 18.04 without sacrificing chickens...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was originally 3.8 and below, then at the beginning of this PR it was switched and I just reverted back to 3.8 since I can't get 4.0 to install on travis. #100

#define ALBATROSS_SINC_EXAMPLE_UTILS_H

#include "GP"
#include "example_utils.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ordering?

COMMENT "Running unit tests"
)

EXCLUDE_FROM_ALL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to put this on the previous line; that way it's not mingled with the source files.

@martin-swift
Copy link
Contributor

on the whole, looking pretty good!

@akleeman akleeman merged commit 2ed667a into swift-nav:master Mar 29, 2019
@akleeman akleeman deleted the directory_reorg branch March 29, 2019 05:03
swiftnav-svc-jenkins added a commit that referenced this pull request Sep 1, 2021
…k_origins

ESD-2197: Enable tracking origins in memcheck

Triggered-By:	cmake	dd6d9ede01cf4c9bc796e6256b40f17d3c139052
lkloh pushed a commit that referenced this pull request Sep 2, 2021
…k_origins (#304)

ESD-2197: Enable tracking origins in memcheck

Triggered-By:	cmake	dd6d9ede01cf4c9bc796e6256b40f17d3c139052
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants