mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Update module-install.cmake
This commit is contained in:
parent
46e6fcdfc0
commit
72e7fa973e
@ -57,16 +57,25 @@ endforeach()
|
|||||||
|
|
||||||
#######################################################################################
|
#######################################################################################
|
||||||
|
|
||||||
install(TARGETS ${OATPP_THIS_MODULE_TARGETS}
|
install(
|
||||||
EXPORT "${OATPP_MODULE_NAME}Targets"
|
TARGETS ${OATPP_THIS_MODULE_TARGETS}
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
EXPORT "${OATPP_MODULE_NAME}Targets"
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
ARCHIVE
|
||||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
||||||
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
|
COMPONENT Devel
|
||||||
|
LIBRARY
|
||||||
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
||||||
|
COMPONENT Library
|
||||||
|
RUNTIME
|
||||||
|
DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp-${OATPP_MODULE_VERSION}"
|
||||||
|
COMPONENT Library
|
||||||
|
INCLUDES
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
|
||||||
)
|
)
|
||||||
|
|
||||||
install(DIRECTORY ${OATPP_DIRS_TO_INSTALL}
|
install(DIRECTORY ${OATPP_DIRS_TO_INSTALL}
|
||||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
|
||||||
|
COMPONENT Devel
|
||||||
FILES_MATCHING PATTERN "*.hpp"
|
FILES_MATCHING PATTERN "*.hpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -74,6 +83,7 @@ install(EXPORT "${OATPP_MODULE_NAME}Targets"
|
|||||||
FILE "${OATPP_MODULE_NAME}Targets.cmake"
|
FILE "${OATPP_MODULE_NAME}Targets.cmake"
|
||||||
NAMESPACE oatpp::
|
NAMESPACE oatpp::
|
||||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
|
||||||
|
COMPONENT Devel
|
||||||
)
|
)
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
@ -104,4 +114,5 @@ install(
|
|||||||
"${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}ConfigVersion.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}ConfigVersion.cmake"
|
||||||
DESTINATION
|
DESTINATION
|
||||||
"${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
|
"${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
|
||||||
)
|
COMPONENT Devel
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user