-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathecm.cmake
37 lines (28 loc) · 1.49 KB
/
ecm.cmake
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
# SPDX-FileCopyrightText: 2012-2021 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause
##############################################################################
# FindUDev.cmake is taken from the ECM repository.
set(_dir "${CMAKE_CURRENT_SOURCE_DIR}/ecm")
if(YCM_DOWNLOAD_3RDPARTY)
set(_files COPYING-CMAKE-SCRIPTS ff3ed70db4739b3c6747c7f624fe2bad70802987
find-modules/FindUDev.cmake 10bfe244e8f2c4d85338563a0057656093fb0d08)
set(_ref v5.79.0)
_ycm_download(3rdparty-ecm
"KDE Extra CMake Modules git repository"
"https://invent.kde.org/frameworks/extra-cmake-modules/-/raw/<REF>/<FILE>"
${_ref} "${_dir}" "${_files}")
file(WRITE "${_dir}/README.ECM"
"Some of the files in this folder and its subfolder come from the ECM git
repository (ref ${_ref}):
https://invent.kde.org/frameworks/extra-cmake-modules
Redistribution and use is allowed according to the terms of the 3-clause
BSD license. See accompanying file COPYING.ECM for details.
")
endif()
_ycm_install(3rdparty-ecm FILES "${_dir}/find-modules/FindUDev.cmake"
DESTINATION "${YCM_INSTALL_MODULE_DIR}/3rdparty")
_ycm_install(3rdparty-ecm FILES "${_dir}/COPYING-CMAKE-SCRIPTS"
DESTINATION "${YCM_INSTALL_MODULE_DIR}/3rdparty"
RENAME COPYING.ECM)
_ycm_install(3rdparty-ecm FILES "${_dir}/README.ECM"
DESTINATION "${YCM_INSTALL_MODULE_DIR}/3rdparty")