cmake: export to different directory, export more build info
This commit is contained in:
parent
37450da55d
commit
3b0bcc9824
@ -558,13 +558,14 @@ if(${CMAKE_VERSION} VERSION_GREATER "2.8.10")
|
||||
|
||||
export(PACKAGE freerdp)
|
||||
|
||||
set(FREERDP_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/FreeRDP/cmake")
|
||||
set(FREERDP_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/FreeRDP")
|
||||
|
||||
set(FREERDP_INCLUDE_DIR "include")
|
||||
set(FREERDP_MONOLITHIC_BUILD ${MONOLITHIC_BUILD})
|
||||
|
||||
configure_package_config_file(FreeRDPConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FreeRDPConfig.cmake
|
||||
INSTALL_DESTINATION ${FREERDP_CMAKE_INSTALL_DIR}
|
||||
PATH_VARS FREERDP_INCLUDE_DIR)
|
||||
PATH_VARS FREERDP_INCLUDE_DIR FREERDP_MONOLITHIC_BUILD)
|
||||
|
||||
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FreeRDPConfigVersion.cmake
|
||||
VERSION ${FREERDP_VERSION} COMPATIBILITY SameMajorVersion)
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
set(FreeRDP_VERSION_MAJOR "@FREERDP_VERSION_MAJOR@")
|
||||
set(FreeRDP_VERSION_MINOR "@FREERDP_VERSION_MINOR@")
|
||||
set(FreeRDP_VERSION_PATCH "@FREERDP_VERSION_PATCH@")
|
||||
set(FreeRDP_VERSION_REVISION "@FREERDP_VERSION_REVISION@")
|
||||
set(FreeRDP_MONOLITHIC_BUILD "@FREERDP_MONOLITHIC_BUILD@")
|
||||
|
||||
set_and_check(FreeRDP_INCLUDE_DIR "@PACKAGE_FREERDP_INCLUDE_DIR@")
|
||||
|
||||
|
@ -86,15 +86,16 @@ if(${CMAKE_VERSION} VERSION_GREATER "2.8.10")
|
||||
|
||||
export(PACKAGE winpr)
|
||||
|
||||
set(WINPR_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/WinPR/cmake")
|
||||
set(WINPR_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/WinPR")
|
||||
|
||||
set(WINPR_INCLUDE_DIR "include")
|
||||
set(WINPR_MONOLITHIC_BUILD ${MONOLITHIC_BUILD})
|
||||
|
||||
message(STATUS "WINPR_VERSION: ${WINPR_VERSION}")
|
||||
|
||||
configure_package_config_file(WinPRConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/WinPRConfig.cmake
|
||||
INSTALL_DESTINATION ${WINPR_CMAKE_INSTALL_DIR}
|
||||
PATH_VARS WINPR_INCLUDE_DIR)
|
||||
PATH_VARS WINPR_INCLUDE_DIR WINPR_MONOLITHIC_BUILD)
|
||||
|
||||
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/WinPRConfigVersion.cmake
|
||||
VERSION ${WINPR_VERSION} COMPATIBILITY SameMajorVersion)
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
set(WinPR_VERSION_MAJOR "@WINPR_VERSION_MAJOR@")
|
||||
set(WinPR_VERSION_MINOR "@WINPR_VERSION_MINOR@")
|
||||
set(WinPR_VERSION_PATCH "@WINPR_VERSION_PATCH@")
|
||||
set(WinPR_VERSION_REVISION "@WINPR_VERSION_REVISION@")
|
||||
set(WinPR_MONOLITHIC_BUILD "@WINPR_MONOLITHIC_BUILD@")
|
||||
|
||||
set_and_check(WinPR_INCLUDE_DIR "@PACKAGE_WINPR_INCLUDE_DIR@")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user