-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no longer needed to specify G3 paths for header and lib (#42)
- Loading branch information
Kjell Hedström
authored
Mar 30, 2017
1 parent
eb8b43c
commit 1e602e4
Showing
6 changed files
with
109 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,33 +16,17 @@ | |
# COMPONENT headers) | ||
|
||
|
||
SET(MAJOR_VERSION 1) | ||
IF (NOT DEFINED ${VERSION}) | ||
MESSAGE("Extracting git software version") | ||
execute_process(COMMAND bash "-c" "git rev-list --branches HEAD | wc -l | tr -d ' ' | tr -d '\n'" OUTPUT_VARIABLE GIT_VERSION) | ||
SET(MINOR_VERSION ${GIT_VERSION}) | ||
SET(BUILD_NUMBER 0) | ||
SET(VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}) | ||
ENDIF() | ||
MESSAGE("Software Version: ${VERSION}") | ||
|
||
SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output dir for libraries") | ||
SET(CMAKE_INSTALL_HEADERDIR include CACHE PATH "Output dir for headers") | ||
|
||
IF (NOT DEFINED ${CPACK_INSTALL_PREFIX}) | ||
SET(CPACK_INSTALL_PREFIX "/usr/local") | ||
ENDIF() | ||
|
||
|
||
SET(CPACK_PACKAGE_NAME g3LogRotate) | ||
SET(CPACK_PACKAGE_VERSION_MAJOR ${MAJOR_VERSION}) | ||
SET(CPACK_PACKAGE_VERSION_MINOR ${MINOR_VERSION}) | ||
SET(CPACK_PACKAGE_VERSION_PATCH ${BUILD_NUMBER}) | ||
SET(CPACK_PACKAGE_DESCRIPTION "Logging sinks compatible with the g3log library. | ||
g3LogRotate. Rotate logs accoording to size limits. Old logs are compressed and | ||
eventually deleted. | ||
The g3LogRotate is a public domain dedication. License: http://unlicense.org | ||
Repository: https://github.com/KjellKod/g3sinks") | ||
libg3logrotate: Rotate logs accoording to default or configured size limits. | ||
Old logs are compressed and eventually deleted. | ||
G3LogRotate is a public domain dedication. | ||
License: http://unlicense.org | ||
Repository: https://github.com/KjellKod/g3sinks") | ||
|
||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CPACK_PACKAGE_DESCRIPTION}) | ||
SET(CPACK_PACKAGE_CONTACT "Kjell Hedstrom [email protected]") | ||
SET(CPACK_RESOURCE_FILE_LICENSE ${PROJECT_SRC}/../LICENSE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters