Cmake_minimum_required (VERSION 3.4.1 track)
Add_library (
# Sets the name of the library.
Native - lib
# Sets the library as a Shared library.
SHARED
# Provides a relative path to the source file (s).
The SRC/main/CPP/native - lib. CPP)
Find_library (
The log - lib
The log)
Add_library (test
SHARED
IMPORTED)
Set_target_properties (test
The PROPERTIES IMPORTED_LOCATION
$(CMAKE_SOURCE_DIR)/SRC/main/jniLibs/$(CMAKE_ANDROID_ARCH_ABI)/libtest. So)
Target_link_libraries (# Specifies the target library.
Native - lib
The test
# the Links the target library to the log library
# the included in the the NDK.
The ${log - lib})
Has been an error
CMake Error at CMakeLists. TXT: 43 (set_target_properties) :
- you incomplete, errors occurred!
Can I ask you what the hell am I wrong?
CodePudding user response:
43 line is set_target_properties that line, I turned the comments deletedCodePudding user response:
Set_target_properties (xhook PROPERTIES IMPORTED_LOCATION $(CMAKE_SOURCE_DIR)/SRC/main/jniLibs/$(CMAKE_ANDROID_ARCH_ABI)/libxhook. So)
Write a line to good... ljas