• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 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#      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,
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)
16
17project(ldt)
18
19set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
20set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG")
21
22add_compile_options(-Wall -g -O1 -Wno-deprecated -Wno-deprecated-declarations)
23
24# we need at least version 3.0.6 for the core.h header used in the fuzzers
25find_package(OpenSSL 3.0.5 REQUIRED)
26if ( OPENSSL_FOUND )
27    message(STATUS "OpenSSL Found: ${OPENSSL_VERSION}")
28    message(STATUS "OpenSSL Include: ${OPENSSL_INCLUDE_DIR}")
29    message(STATUS "OpenSSL Libraries: ${OPENSSL_LIBRARIES}")
30endif()
31
32add_subdirectory(ldt_np_c_sample)
33
34if (ENABLE_FUZZ)
35    message(STATUS "Building fuzzers")
36    add_subdirectory(ldt_np_adv_ffi_fuzz)
37endif()
38
39
40