| cmake_minimum_required(VERSION 3.13) |
| |
| project(Examples CXX) |
| |
| set(CMAKE_CXX_STANDARD 14) |
| set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| |
| set(CMAKE_BUILD_TYPE Release) |
| |
| # Import Tink as an in-tree dependency. |
| add_subdirectory(../.. tink) |
| |
| # Make sure we have bash. |
| find_program(BASH_PROGRAM bash REQUIRED) |
| |
| # Include path at the base of the examples folder. |
| set(TINK_EXAMPLES_INCLUDE_PATH "${CMAKE_SOURCE_DIR}") |
| |
| include(FetchContent) |
| |
| FetchContent_Declare( |
| googletest |
| URL https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz |
| URL_HASH SHA256=b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5 |
| ) |
| |
| FetchContent_GetProperties(googletest) |
| if(NOT googletest_POPULATED) |
| FetchContent_Populate(googletest) |
| add_subdirectory( |
| ${googletest_SOURCE_DIR} |
| ${googletest_BINARY_DIR} |
| EXCLUDE_FROM_ALL) |
| endif() |
| |
| enable_testing() |
| |
| add_subdirectory(aead) |
| add_subdirectory(digital_signatures) |
| add_subdirectory(hybrid_encryption) |
| add_subdirectory(jwt) |
| add_subdirectory(mac) |
| add_subdirectory(util) |
| add_subdirectory(walkthrough) |