Fix Android build (again)

closes #27
This commit is contained in:
sfan5 2021-04-17 17:30:45 +02:00
parent bd95662f03
commit 4719f3c114
2 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,7 @@ add_subdirectory(source/Irrlicht)
# Installation of library and headers.
include(GNUInstallDirs)
install(TARGETS IrrlichtMt
install(TARGETS ${INSTALL_TARGETS}
EXPORT IrrlichtMt-export
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)

View File

@ -401,3 +401,9 @@ set_target_properties(IrrlichtMt PROPERTIES
if(WIN32)
set_target_properties(IrrlichtMt PROPERTIES PREFIX "") # for DLL name
endif()
if(ANDROID)
set(INSTALL_TARGETS IrrlichtMt native_app_glue PARENT_SCOPE)
else()
set(INSTALL_TARGETS IrrlichtMt PARENT_SCOPE)
endif()