installing e57 only when shared lib

This commit is contained in:
alemuntoni 2021-07-21 12:04:55 +02:00
parent 4ebae09f45
commit 0251633a2b

View File

@ -21,7 +21,10 @@ if (TARGET external-xerces)
set(MESSAGE_QUIET ON)
add_subdirectory(e57 EXCLUDE_FROM_ALL)
unset(MESSAGE_QUIET)
install(TARGETS E57Format DESTINATION ${MESHLAB_LIB_INSTALL_DIR})
get_target_property(target_type E57Format TYPE)
if (target_type STREQUAL "SHARED_LIBRARY")
install(TARGETS E57Format DESTINATION ${MESHLAB_LIB_INSTALL_DIR})
endif ()
add_library(external-libE57Format INTERFACE)
target_link_libraries(external-libE57Format INTERFACE E57Format)