Commit 62f514a6 authored by Luca Giambonini's avatar Luca Giambonini

master

parent c06ee0c2
@PACKAGE_INIT@
# Required components to use this framework
include(CMakeFindDependencyMacro)
find_dependency(Qt5Core "@REQUIRED_QT_VERSION@")
find_dependency(Qt5Test "@REQUIRED_QT_VERSION@")
find_dependency(Qt5Network "@REQUIRED_QT_VERSION@")
find_dependency(Qt5Concurrent "@REQUIRED_QT_VERSION@")
find_dependency(Qt5DBus "@REQUIRED_QT_VERSION@")
find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@")
include("${CMAKE_CURRENT_LIST_DIR}/AkabeiClientConfig.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
......@@ -34,6 +34,8 @@ set(STATE_DIR "/var" CACHE "Where caches and logs will be stored (usually under
set(CONFIGURATION_DIR "/etc" CACHE "Where Akabei's configuration will be stored" STRING)
set(CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/akabeiclient")
include(CMakePackageConfigHelpers) # Used to create CMake config files
find_package(Qt5 5.2.0 REQUIRED CONFIG COMPONENTS Core Test Network Concurrent DBus Widgets)
find_package(AkabeiCore REQUIRED)
find_package(LibArchive REQUIRED)
......@@ -45,10 +47,23 @@ add_definitions(${QT_DEFINITIONS} -W -Wall)
add_definitions(-Werror)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/akabeiclientconfig.h.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/akabeiclientconfig.h"
IMMEDIATE @ONLY)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/AkabeiClientConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/AkabeiClientConfig.cmake"
INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/AkabeiClientConfigVersion.cmake"
VERSION ${AKABEI_VERSION_STRING}
COMPATIBILITY AnyNewerVersion
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/AkabeiClientConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/AkabeiClientConfigVersion.cmake"
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
COMPONENT Devel)
include_directories(
${QT_INCLUDES}
......
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