From 22c226af3f5570514d3d13d82a399577ecd7d280 Mon Sep 17 00:00:00 2001 From: Konstantin Varlamov Date: Tue, 27 Mar 2018 11:50:03 -0400 Subject: C++ migration: make Timestamp class a part of public API (#944) * move Timestamp from model/ to the root directory; * move Timestamp to top-level firebase namespace and update all references; * add conversions to and from native date types; * add a specialization of std::hash; * add comments to public member functions; * rename nanos -> nanoseconds; * add public headers, including Timestamp, to CMake; * increase test coverage. --- .../core/include/firebase/firestore/CMakeLists.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Firestore/core/include/firebase/firestore/CMakeLists.txt (limited to 'Firestore/core/include/firebase/firestore/CMakeLists.txt') diff --git a/Firestore/core/include/firebase/firestore/CMakeLists.txt b/Firestore/core/include/firebase/firestore/CMakeLists.txt new file mode 100644 index 0000000..e4e7acd --- /dev/null +++ b/Firestore/core/include/firebase/firestore/CMakeLists.txt @@ -0,0 +1,25 @@ +# Copyright 2018 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Hack to make the headers show up in IDEs +# (see https://stackoverflow.com/questions/27039019/ and open issue on CMake +# issue tracker: https://gitlab.kitware.com/cmake/cmake/issues/15234) +add_custom_target(firebase_firestore_types_ide SOURCES + document_reference.h + event_listener.h + firestore.h + firestore_errors.h + geo_point.h + timestamp.h +) -- cgit v1.2.3