-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
47 lines (38 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileContributor: Leon Matthes <[email protected]>
#
# SPDX-License-Identifier: MIT OR Apache-2.0
cmake_minimum_required(VERSION 3.22)
project(CxxQt
VERSION 0.7.0
LANGUAGES NONE
HOMEPAGE_URL "https://github.com/kdab/cxx-qt/"
)
# Include without installing
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(CxxQt)
if (NOT PROJECT_IS_TOP_LEVEL)
return()
endif()
# Installation
include(GNUInstallDirs)
# Generate the Config file
include(CMakePackageConfigHelpers)
configure_package_config_file(
cmake/CxxQtConfig.cmake.in CxxQtConfig.cmake
INSTALL_DESTINATION
"${CMAKE_INSTALL_FULL_LIBDIR}/cmake/CxxQt"
)
install(
FILES
"${CMAKE_CURRENT_BINARY_DIR}/CxxQtConfig.cmake"
DESTINATION
"${CMAKE_INSTALL_FULL_LIBDIR}/cmake/CxxQt"
)
# These CMake scripts are needed both for the install and as a subdirectory
install(
FILES
cmake/CxxQt.cmake
DESTINATION
"${CMAKE_INSTALL_FULL_DATADIR}/cmake"
)