Skip to content

Commit

Permalink
[SymForce-External] Install symforce slam
Browse files Browse the repository at this point in the history
Install symforce slam

Install the symforce slam library such that this can be used in standalone CMake projects. E.g. to include the IMU factor.

I've used the same approach as in the installation of [symforce_opt](https://github.com/symforce-org/symforce/blob/7b2210832bf53a9645473620f7cdd966dd2a490a/CMakeLists.txt#L283-L284) and [symforce_gen](https://github.com/johhat/symforce/blob/7b2210832bf53a9645473620f7cdd966dd2a490a/symforce/opt/CMakeLists.txt#L166-L167).

The pattern matching picks up both .h files and .tcc files, but the latter has no effect at the moment since no .tcc files are present.

Closes #309

GitOrigin-RevId: cabc34a8086788f69e72c0655882d3f703931c46
  • Loading branch information
johhat authored and aaron-skydio committed Mar 10, 2023
1 parent 7b22108 commit d56c10c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions symforce/slam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ target_link_libraries(symforce_slam
symforce_opt
${SYMFORCE_EIGEN_TARGET}
)

install(TARGETS symforce_slam DESTINATION lib)
install(DIRECTORY ./ DESTINATION include/symforce/slam FILES_MATCHING PATTERN "*.h" PATTERN "*.tcc")

0 comments on commit d56c10c

Please sign in to comment.