Skip to content

Commit 51cd06d

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_nativemodule cmake
Summary: Changelog: [Internal] Add cmake lib react_cxx_platform_react_nativemodule Differential Revision: D77037835
1 parent d33a49d commit 51cd06d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • packages/react-native/ReactCxxPlatform/react/nativemodule
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
6+
cmake_minimum_required(VERSION 3.13)
7+
set(CMAKE_VERBOSE_MAKEFILE on)
8+
9+
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
10+
11+
add_library(react_cxx_platform_react_nativemodule INTERFACE)
12+
13+
target_include_directories(react_cxx_platform_react_nativemodule INTERFACE ${REACT_CXX_PLATFORM_DIR})
14+
15+
target_link_libraries(react_cxx_platform_react_nativemodule INTERFACE
16+
folly_runtime
17+
react_nativemodule_core
18+
)
19+
target_compile_reactnative_options(react_cxx_platform_react_nativemodule INTERFACE)
20+
target_compile_options(react_cxx_platform_react_nativemodule INTERFACE -Wpedantic)

0 commit comments

Comments
 (0)