Skip to content

Commit

Permalink
Seperate libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkbyteprojects committed Feb 11, 2023
1 parent 59dc11b commit 62cd036
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,23 @@ project("qrcodegenerator")
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.

add_library( # Sets the name of the library.
externalqrgenlib

# Sets the library as a shared library.
SHARED

# Provides a relative path to your source file(s).
"external_libs/qrcodegen.cpp")

add_library( # Sets the name of the library.
qrcodegenerator

# Sets the library as a shared library.
SHARED

# Provides a relative path to your source file(s).
native-lib.cpp "external_libs/qrcodegen.cpp")
native-lib.cpp)

# Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
Expand All @@ -42,7 +51,7 @@ find_library( # Sets the name of the path variable.

target_link_libraries( # Specifies the target library.
qrcodegenerator

externalqrgenlib
# Links the target library to the log library
# included in the NDK.
${log-lib})

0 comments on commit 62cd036

Please sign in to comment.