From 0b0d57895bbe4afaf1d77d0a22a599bb8012444b Mon Sep 17 00:00:00 2001 From: Samuel Freilich Date: Mon, 7 Mar 2022 12:50:49 -0800 Subject: 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 --- ink_stroke_modeler/CMakeLists.txt | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'ink_stroke_modeler/CMakeLists.txt') 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 ) -- cgit v1.2.3