jni.hpp for android only

This commit is contained in:
halx99 2021-12-29 19:27:27 +08:00
parent 1941a43dc9
commit c81bb1b4c4
1 changed files with 6 additions and 1 deletions

View File

@ -68,9 +68,14 @@ add_library(thirdparty STATIC empty.cpp)
# header only libs
target_include_directories(thirdparty
INTERFACE "robin-map/include"
INTERFACE "jni.hpp/include"
)
if (ANDROID)
target_include_directories(thirdparty
INTERFACE "jni.hpp/include"
)
endif()
if(MACOSX OR ANDROID OR WINDOWS)
add_subdirectory(zlib)
target_link_libraries(thirdparty