Skip to content

Commit 620337b

Browse files
authored
add a missing CMakeLists.txt (#98)
1 parent 1969b5d commit 620337b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

c++/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2023 Greptime Team
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4+
# use this file except in compliance with the License. You may obtain a copy of
5+
# the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
# License for the specific language governing permissions and limitations under
13+
# the License.
14+
15+
cmake_minimum_required(VERSION 3.22)
16+
17+
project(greptime_proto_cpp_lib)
18+
19+
file(GLOB_RECURSE OUTPUT_SOURCES "*.h" "*.cc")
20+
21+
add_library(${PROJECT_NAME} ${OUTPUT_SOURCES})
22+
23+
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)