• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7# @generated by test/utils/generate_gtest_cmakelists.py
8#
9# This file should be formatted with
10# ~~~
11# cmake-format -i CMakeLists.txt
12# ~~~
13# It should also be cmake-lint clean.
14#
15
16cmake_minimum_required(VERSION 3.19)
17project({project_name})
18
19# Use C++17 for test.
20set(CMAKE_CXX_STANDARD 17)
21
22set(EXECUTORCH_ROOT ${{CMAKE_CURRENT_SOURCE_DIR}}/{path_to_root})
23
24include(${{EXECUTORCH_ROOT}}/build/Test.cmake)
25
26set(_test_srcs {test_srcs})
27
28et_cxx_test({project_name} SOURCES ${{_test_srcs}} EXTRA_LIBS {additional_libs})
29