From f4453d46167d80457aae10e405a5e05203e21092 Mon Sep 17 00:00:00 2001 From: Lince Liu <353627866@qq.com> Date: Sun, 15 Jun 2025 07:13:09 +0000 Subject: [PATCH] update entry/src/main/cpp/CMakeLists.txt. Signed-off-by: Lince Liu <353627866@qq.com> --- entry/src/main/cpp/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/entry/src/main/cpp/CMakeLists.txt b/entry/src/main/cpp/CMakeLists.txt index ff9417c..4baef57 100644 --- a/entry/src/main/cpp/CMakeLists.txt +++ b/entry/src/main/cpp/CMakeLists.txt @@ -1,14 +1,19 @@ -# the minimum version of CMake. +# Declare the minimum CMake version number. cmake_minimum_required(VERSION 3.4.1) + +# Configure project information project(NativeTemplateDemo) +# Use the set command. The format is set(key value). set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}) +# Set the header file search directory. include_directories( ${NATIVERENDER_ROOT_PATH} ${NATIVERENDER_ROOT_PATH}/include ) +# Add a log library. find_library( # Sets the name of the path variable. hilog-lib @@ -17,5 +22,8 @@ find_library( hilog_ndk.z ) +# Add a library named hello. The library file name is libhello.so. add_library(hello SHARED hello.cpp) + +# Add the libraries to be linked. target_link_libraries(hello PUBLIC ${hilog-lib} libace_napi.z.so libc++.a) \ No newline at end of file -- Gitee