Update CMakeLists.txt
This commit is contained in:
parent
79e96398cd
commit
b848dec86a
@ -199,6 +199,7 @@ SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
|
||||
IF(VMIME_BUILD_SHARED_LIBRARY)
|
||||
INSTALL(
|
||||
TARGETS ${VMIME_LIBRARY_NAME}
|
||||
EXPORT ${VMIME_LIBRARY_NAME}-config
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT sharedlibs
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT sharedlibs
|
||||
)
|
||||
@ -207,6 +208,7 @@ ENDIF()
|
||||
IF(VMIME_BUILD_STATIC_LIBRARY)
|
||||
INSTALL(
|
||||
TARGETS ${VMIME_LIBRARY_NAME}-static
|
||||
EXPORT ${VMIME_LIBRARY_NAME}-config
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT staticlibs
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT staticlibs
|
||||
)
|
||||
@ -222,6 +224,8 @@ INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers "${
|
||||
# COMPONENT headers
|
||||
#)
|
||||
|
||||
install(EXPORT ${VMIME_LIBRARY_NAME}-config DESTINATION cmake)
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Tests
|
||||
|
Loading…
Reference in New Issue
Block a user