diff --git a/CMakeLists.txt b/CMakeLists.txt index eaa5716f..5adbb4f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}" ) diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index f8bf8196..d709546b 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -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()