File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
- build *
1
+ build *
2
+ Format.cmakeConfigVersion.cmake
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.14 )
2
+
3
+ set (Format.cmake_VERSION 1.8.3 )
4
+
5
+ include (GNUInstallDirs )
6
+
7
+ set (CMAKEDIR
8
+ ${CMAKE_INSTALL_DATADIR} /cmake/Format.cmake/
9
+ CACHE
10
+ PATH
11
+ "Path to a folder to which install the script Format.cmake . By default: ${CMAKE_INSTALL_DATADIR} /cmake/Format.cmake/"
12
+ )
13
+
14
+ include (CMakePackageConfigHelpers )
15
+
16
+ include (GNUInstallDirs )
17
+
18
+ write_basic_package_version_file (${CMAKE_CURRENT_LIST_DIR} /../Format.cmakeConfigVersion.cmake VERSION ${Format.cmake_VERSION} COMPATIBILITY AnyNewerVersion ARCH_INDEPENDENT )
19
+
20
+ install (FILES "${CMAKE_CURRENT_LIST_DIR} /../CMakeLists.txt"
21
+ DESTINATION "${CMAKEDIR} " RENAME "Format.cmakeConfig.cmake"
22
+ )
23
+
24
+ install (FILES "${CMAKE_CURRENT_LIST_DIR} /../Format.cmakeConfigVersion.cmake"
25
+ DESTINATION "${CMAKEDIR} "
26
+ )
27
+ install (FILES "${CMAKE_CURRENT_LIST_DIR} /../cmake-format.cmake"
28
+ DESTINATION "${CMAKEDIR} "
29
+ )
30
+
31
+ install (FILES "${CMAKE_CURRENT_LIST_DIR} /../git-clang-format.py"
32
+ DESTINATION "${CMAKEDIR} "
33
+ )
34
+
35
+ message (STATUS "Use `find_package(Format.cmake)` to use it" )
You can’t perform that action at this time.
0 commit comments