-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (26 loc) · 853 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
project(NitroTest)
cmake_minimum_required(VERSION 3.9.0)
set (PACKAGE_NAME NitroTest)
set (CMAKE_VERBOSE_MAKEFILE ON)
set (CMAKE_CXX_STANDARD 20)
# Define C++ library and add all sources
add_library(${PACKAGE_NAME} SHARED
src/main/cpp/cpp-adapter.cpp
../cpp/HybridTestObjectCpp.cpp
)
# Add Nitrogen specs :)
include(${CMAKE_SOURCE_DIR}/../nitrogen/generated/android/NitroTest+autolinking.cmake)
# Set up local includes
include_directories(
"src/main/cpp"
"../cpp"
)
find_library(LOG_LIB log)
find_package(react-native-nitro-test-external REQUIRED) # <-- for the SomeExternalObject type
# Link all libraries together
target_link_libraries(
${PACKAGE_NAME}
${LOG_LIB}
android # <-- Android core
react-native-nitro-test-external::NitroTestExternal
)