blob: 7d62eb33b0e05544cbfaf25075df600a80f49140 [file] [log] [blame]
Alexey Polyudove7b69882020-06-04 16:00:11 -07001# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# https://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,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15cmake_minimum_required(VERSION 3.0.2)
16
17project(securemessage)
18
19option(securemessage_USE_LOCAL_PROTOBUF
20 "Use local copy of protobuf library and compiler" OFF)
21
22include(cmake/proto_defs.cmake)
23include(cmake/local_build_setup.cmake)
24
25if (securemessage_USE_LOCAL_PROTOBUF)
26 include(cmake/local_build_protobuf.cmake)
27endif()
28
29find_package(Protobuf REQUIRED)
30find_package(OpenSSL REQUIRED)
31
32enable_testing()
33
34add_subdirectory(cpp)
35add_subdirectory(proto)
36if (NOT TARGET gtest)
37add_subdirectory(third_party/gtest)
38endif()