-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import standard cmake modules, standardise dependency resolution [ESD…
…-1246] [ESD-1247] (#126) * Start importing common cmake repo * Finish importing cmake modules * Swift to swift fork of eigen * Use https for common cmake modules * Use https for eigen * Fix CI errors * Make unit tests and examples optional * Include tests directory in interface * Update swift project options * Update project options * Bump cmake modules * Revert to old unit test run targets * Fix example build targets * Change cereal to be header only interface target * Don't clobber global compiler flags * Bump cmake modules * cmake compile features not available in higher level projects * Re-add clang-format support * Bump cmake modules * Include gzip headers as system * Remove clang-format hack * Bump cmake * Import merged submodules * Enforce no compiler extensions * Bump cmake modules * Bump cmake modules * Bump cmake modules * Bump cmake modules
- Loading branch information
Showing
12 changed files
with
69 additions
and
142 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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
[submodule "third_party/eigen"] | ||
path = third_party/eigen | ||
url = https://github.com/PX4/eigen.git | ||
url = https://github.com/swift-nav/eigen.git | ||
[submodule "third_party/gflags"] | ||
path = third_party/gflags | ||
path = third_party/googleflags | ||
url = https://github.com/gflags/gflags.git | ||
[submodule "third_party/googletest"] | ||
path = third_party/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "third_party/fast-cpp-csv-parser"] | ||
path = third_party/fast-cpp-csv-parser | ||
url = https://github.com/ben-strasser/fast-cpp-csv-parser.git | ||
url = https://github.com/swift-nav/fast-cpp-csv-parser.git | ||
[submodule "third_party/cereal"] | ||
path = third_party/cereal | ||
url = https://github.com/USCiLab/cereal.git | ||
[submodule "third_party/gzip-hpp"] | ||
path = third_party/gzip-hpp | ||
url = https://github.com/mapbox/gzip-hpp.git | ||
[submodule "cmake/cmake"] | ||
path = cmake/common | ||
url = https://github.com/swift-nav/cmake.git |
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 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,11 @@ | ||
# Cereal throws lots of compiler errors if we add_subdirectory it, but we | ||
# only want the headers anyway | ||
if(TARGET cereal) | ||
return() | ||
endif() | ||
|
||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cereal/include") | ||
add_library(cereal INTERFACE) | ||
|
||
target_include_directories(cereal SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cereal/include") | ||
endif() |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
# Non-swift code that doesn't nicely export a library target, can't use the generic module | ||
if(EXISTS "${PROJECT_SOURCE_DIR}/third_party/gzip-hpp/CMakeLists.txt") | ||
add_library(gzip-hpp INTERFACE) | ||
target_include_directories(gzip-hpp SYSTEM INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/gzip-hpp/include>) | ||
else() | ||
if(Gzip-Hpp_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find REQUIRED package Gzip-Hpp") | ||
else() | ||
message(WARNING "Could not find package Gzip-Hpp") | ||
endif() | ||
endif() | ||
|
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 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
Submodule googleflags
updated
from 000000 to e292e0