File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,23 @@ project("qrcodegenerator")
14
14
# You can define multiple libraries, and CMake builds them for you.
15
15
# Gradle automatically packages shared libraries with your APK.
16
16
17
+ add_library ( # Sets the name of the library.
18
+ externalqrgenlib
19
+
20
+ # Sets the library as a shared library.
21
+ SHARED
22
+
23
+ # Provides a relative path to your source file(s).
24
+ "external_libs/qrcodegen.cpp" )
25
+
17
26
add_library ( # Sets the name of the library.
18
27
qrcodegenerator
19
28
20
29
# Sets the library as a shared library.
21
30
SHARED
22
31
23
32
# Provides a relative path to your source file(s).
24
- native-lib.cpp "external_libs/qrcodegen.cpp" )
33
+ native-lib.cpp )
25
34
26
35
# Searches for a specified prebuilt library and stores the path as a
27
36
# variable. Because CMake includes system libraries in the search path by
@@ -42,7 +51,7 @@ find_library( # Sets the name of the path variable.
42
51
43
52
target_link_libraries ( # Specifies the target library.
44
53
qrcodegenerator
45
-
54
+ externalqrgenlib
46
55
# Links the target library to the log library
47
56
# included in the NDK.
48
57
${log-lib} )
You can’t perform that action at this time.
0 commit comments