diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-08-20 23:21:06 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-08-20 23:21:06 +0200 |
| commit | 9b7f943969e17273ac9bd78bb238ffbea3865993 (patch) | |
| tree | 32d7d5c5f35414717b8bfa25f786fc4d2ebce029 /libs/samba/CMakeLists.txt | |
| parent | 088a7aef623700798647ad5b279388c4f7a59299 (diff) | |
Support building libsamba.so for unittests
Unittests still fail as there is no samba server to talk to (step 2).
Diffstat (limited to 'libs/samba/CMakeLists.txt')
| -rw-r--r-- | libs/samba/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/samba/CMakeLists.txt b/libs/samba/CMakeLists.txt index 66f6cd7..d47113a 100644 --- a/libs/samba/CMakeLists.txt +++ b/libs/samba/CMakeLists.txt @@ -20,6 +20,13 @@ include(cmake/ConfigureChecks.cmake) add_subdirectory(libsmb2/lib) +if (ANDROID) + find_library(log-lib log) +else() + find_package(JNI) + include_directories(${JNI_INCLUDE_DIRS}) +endif() + add_library( samba SHARED @@ -28,6 +35,4 @@ add_library( src/main/cpp/samba.cpp ) -find_library(log-lib log) - target_link_libraries(samba smb2 ${log-lib}) |
