File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-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
+
1
5
include (GNUInstallDirs)
2
6
3
7
set (CMAKEDIR
@@ -7,10 +11,19 @@ set(CMAKEDIR
7
11
"Path to a folder to which install the script Format.cmake . By default: ${CMAKE_INSTALL_DATADIR} /cmake/Format.cmake/"
8
12
)
9
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
+
10
20
install (FILES "${CMAKE_CURRENT_LIST_DIR} /../CMakeLists.txt"
11
21
DESTINATION "${CMAKEDIR} " RENAME "Format.cmakeConfig.cmake"
12
22
)
13
23
24
+ install (FILES "${CMAKE_CURRENT_LIST_DIR} /../Format.cmakeConfigVersion.cmake"
25
+ DESTINATION "${CMAKEDIR} "
26
+ )
14
27
install (FILES "${CMAKE_CURRENT_LIST_DIR} /../cmake-format.cmake"
15
28
DESTINATION "${CMAKEDIR} "
16
29
)
You can’t perform that action at this time.
0 commit comments