Handle CMake CMP0024
[lxde/libsysstat.git] / cmake / sysstat-config.cmake.in
CommitLineData
e61f67d1
HJYP
1# - Find the sysstat include and library dirs and define a some macros
2#
3# The module defines the following variables
4#
5# SYSSTAT_FOUND - Set to TRUE if all of the above has been found
ca98d603
LP
6
7
8@PACKAGE_INIT@
e61f67d1
HJYP
9
10set(SYSSTAT_MAJOR_VERSION @MAJOR_VERSION@)
11set(SYSSTAT_MINOR_VERSION @MINOR_VERSION@)
12set(SYSSTAT_PATCH_VERSION @PATCH_VERSION@)
13set(SYSSTAT_VERSION @SYSSTAT_VERSION@)
14
ca98d603 15include(CMakeFindDependencyMacro)
e61f67d1 16
b858d254 17find_dependency(Qt5Core @QT_MINIMUM_VERSION@)
412c2456
LP
18if (NOT TARGET @SYSSTAT_LIBRARY_NAME@)
19 if (POLICY CMP0024)
20 cmake_policy(SET CMP0024 NEW)
21 endif()
22 include("${CMAKE_CURRENT_LIST_DIR}/@SYSSTAT_LIBRARY_NAME@-targets.cmake")
ca98d603 23endif()