Commit 9db7b3e1 authored by Nicolas Michon's avatar Nicolas Michon

Temporary cmake changes

parent 6c402209
......@@ -26,8 +26,7 @@
# LIBXSD_INCLUDE_DIRS - the libxsd include directory
# LIBXSD_LIBRARIES - The libraries needed to use libxsd
find_package(XercesC)
find_library(XercesC_LIBRARIES XercesC NAMES xerces-c PATHS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
find_path(LIBXSD_INCLUDE_DIRS
NAMES xsd/cxx/config.hxx
......@@ -37,6 +36,7 @@ find_path(LIBXSD_INCLUDE_DIRS
if(LIBXSD_INCLUDE_DIRS)
list(APPEND LIBXSD_INCLUDE_DIRS ${XercesC_INCLUDE_DIRS})
endif()
set(LIBXSD_LIBRARIES ${XercesC_LIBRARIES})
include(FindPackageHandleStandardArgs)
......
......@@ -76,6 +76,9 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/linphone++
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
set(TARGET_NAME "LinphoneCxx")
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/${TARGET_NAME}")
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/LinphoneCxxVersion.cmake"
......@@ -85,7 +88,11 @@ write_basic_package_version_file(
export(EXPORT LinphoneCxxTargets
FILE "${CMAKE_CURRENT_BINARY_DIR}/LinphoneCxxTargets.cmake"
)
configure_file(LinphoneCxxConfig.cmake.in LinphoneCxxConfig.cmake @ONLY)
configure_package_config_file(LinphoneCxxConfig.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/LinphoneCxxConfig.cmake"
INSTALL_DESTINATION ${CONFIG_PACKAGE_LOCATION}
NO_SET_AND_CHECK_MACRO
)
install(EXPORT LinphoneCxxTargets
FILE LinphoneCxxTargets.cmake
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment