We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c0044 commit 7dce612Copy full SHA for 7dce612
CMakeLists.txt
@@ -52,6 +52,16 @@ add_custom_command(
52
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
53
add_custom_target(package DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}")
54
55
+# create a release (by pushing a tag to the repository)
56
+
57
+find_program(GIT git REQUIRED)
58
59
+add_custom_target(
60
+ release
61
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
62
+ COMMAND "${GIT}" tag "v${CMAKE_PROJECT_VERSION}"
63
+ COMMAND "${GIT}" push "v${CMAKE_PROJECT_VERSION}")
64
65
# optional examples
66
67
if(TRAITS_BUILD_EXAMPLES)
0 commit comments