diff options
author | Samuel Freilich <sfreilich@google.com> | 2022-03-07 12:50:49 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-03-07 12:51:17 -0800 |
commit | 0b0d57895bbe4afaf1d77d0a22a599bb8012444b (patch) | |
tree | 2d8b68a37f7c0cfb2727937b943771daa1df6a0b /ink_stroke_modeler/CMakeLists.txt | |
parent | bf6f33f34f7063ae8ccc1e1f798d3ecf14286f0a (diff) | |
download | ink-stroke-modeler-0b0d57895bbe4afaf1d77d0a22a599bb8012444b.tar.gz |
Fix CMake build structure and add usage docs
Focus on consumers using submodules + add_subdirectory, pruning logic related to local installation for now. Targets are now namespaced properly in `InkStrokeModeler::`.
Adds usage documentation for consuming the library from Bazel and CMake projects.
PiperOrigin-RevId: 433015667
Diffstat (limited to 'ink_stroke_modeler/CMakeLists.txt')
-rw-r--r-- | ink_stroke_modeler/CMakeLists.txt | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/ink_stroke_modeler/CMakeLists.txt b/ink_stroke_modeler/CMakeLists.txt index c204cac..b31e9c7 100644 --- a/ink_stroke_modeler/CMakeLists.txt +++ b/ink_stroke_modeler/CMakeLists.txt @@ -22,11 +22,10 @@ ink_cc_library( HDRS params.h DEPS - types + InkStrokeModeler::types absl::status absl::strings absl::variant - PUBLIC ) ink_cc_test( @@ -35,7 +34,7 @@ ink_cc_test( SRCS params_test.cc DEPS - params + InkStrokeModeler::params absl::status GTest::gmock_main ) @@ -45,7 +44,6 @@ ink_cc_library( types HDRS types.h - PUBLIC ) ink_cc_test( @@ -54,8 +52,8 @@ ink_cc_test( SRCS types_test.cc DEPS - types - type_matchers + InkStrokeModeler::types + InkStrokeModeler::type_matchers GTest::gmock_main ) @@ -67,15 +65,15 @@ ink_cc_library( HDRS stroke_modeler.h DEPS - params - types - internal_types - position_modeler - stylus_state_modeler - wobble_smoother - input_predictor - kalman_predictor - stroke_end_predictor + InkStrokeModeler::params + InkStrokeModeler::types + InkStrokeModeler::internal_types + InkStrokeModeler::position_modeler + InkStrokeModeler::stylus_state_modeler + InkStrokeModeler::wobble_smoother + InkStrokeModeler::input_predictor + InkStrokeModeler::kalman_predictor + InkStrokeModeler::stroke_end_predictor absl::core_headers absl::memory absl::status @@ -90,9 +88,9 @@ ink_cc_test( SRCS stroke_modeler_test.cc DEPS - params - stroke_modeler - type_matchers + InkStrokeModeler::params + InkStrokeModeler::stroke_modeler + InkStrokeModeler::type_matchers absl::status GTest::gmock_main ) |