File tree 2 files changed +41
-5
lines changed
2 files changed +41
-5
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ include(SecurityFlags)
33
33
string (TOUPPER ${META_PROJECT_NAME} META_PROJECT_NAME_UPPER)
34
34
string (TOLOWER ${META_PROJECT_NAME} META_PROJECT_NAME_LOWER)
35
35
36
- set (template_include_path "${CMAKE_CURRENT_SOURCE_DIR} /include/${target} " )
37
-
38
- set (include_path "${CMAKE_BINARY_DIR} /source/include/${META_PROJECT_NAME_LOWER} " )
36
+ set (include_path "${CMAKE_CURRENT_SOURCE_DIR} /include/${target} " )
37
+ set (include_binary_path "${CMAKE_BINARY_DIR} /source/include/${META_PROJECT_NAME_LOWER} " )
39
38
set (source_path "${CMAKE_CURRENT_SOURCE_DIR} /source" )
40
39
41
40
# Generate version-header
42
- configure_file (${template_include_path } /version .h.in ${include_path } /${META_PROJECT_NAME_LOWER} _version.h)
41
+ configure_file (${include_path } /version .h.in ${include_binary_path } /${META_PROJECT_NAME_LOWER} _version.h)
43
42
44
43
set (headers
45
- ${include_path} /${META_PROJECT_NAME_LOWER} _version.h
44
+ ${include_binary_path} /${META_PROJECT_NAME_LOWER} _version.h
45
+ ${include_path} /version .h
46
46
)
47
47
48
48
set (sources
Original file line number Diff line number Diff line change
1
+ /*
2
+ * CMake Versioning Utility by Parra Studios
3
+ * A template for generating versioning utilities.
4
+ *
5
+ * Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ */
20
+
21
+ #ifndef VERSION_H
22
+ #define VERSION_H 1
23
+
24
+ #include <version/version_api.h>
25
+
26
+ #ifdef __cplusplus
27
+ extern "C" {
28
+ #endif
29
+
30
+ VERSION_API const char * version_print_info (void );
31
+
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+
36
+ #endif /* VERSION_H */
You can’t perform that action at this time.
0 commit comments