added alias target for consistence btw find_packaage and fetchconten/Externalproject

This commit is contained in:
Prateek Chokse 2021-02-02 13:05:03 +05:30 committed by Nathan Moinvaziri
parent bd787ca6d2
commit 420d9c365c

View File

@ -716,6 +716,9 @@ target_include_directories(${PROJECT_NAME} PUBLIC
$<INSTALL_INTERFACE:${INSTALL_INC_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
#create minizip alias
add_library(MINIZIP::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
# Install files
if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
install(TARGETS ${PROJECT_NAME} ${MINIZIP_DEP}