Restore support for the INSTALL_LIB option (#1756)

It appears this was removed by accident.

Fixes: 677dc73eac
This commit is contained in:
Mike Gilbert 2021-08-13 14:26:38 -04:00 committed by GitHub
parent 79e8bc5c46
commit 409f59889b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -294,3 +294,8 @@ endif()
if(WIN32)
target_link_libraries(${TR_NAME} crypt32 shlwapi)
endif()
if(INSTALL_LIB)
install(TARGETS ${TR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${${PROJECT_NAME}_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${TR_NAME})
endif()