File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 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+ # Please keep this file formatted by running:
8+ # ~~~
9+ # cmake-format -i CMakeLists.txt
10+ # ~~~
11+
12+ if (NOT (EXECUTORCH_BUILD_PTHREADPOOL AND EXECUTORCH_BUILD_CPUINFO))
13+ message (FATAL_ERROR "extension/parallel requires extension/threadpool" )
14+ endif ()
15+
16+ add_library (extension_parallel thread_parallel.cpp)
17+
18+ target_link_libraries (extension_parallel PUBLIC executorch_core extension_threadpool)
19+ target_compile_options (extension_parallel PUBLIC ${_common_compile_options} )
20+
21+ install (
22+ TARGETS extension_parallel
23+ DESTINATION lib
24+ INCLUDES
25+ DESTINATION ${_common_include_directories} )
You can’t perform that action at this time.
0 commit comments