Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
elementary-utils
Commits
ac182b4d
Commit
ac182b4d
authored
Aug 09, 2017
by
Pawel Sznajder
Browse files
Implement partons/core/partons#36
parent
538d3497
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ac182b4d
...
...
@@ -9,6 +9,21 @@ project(ElementaryUtils CXX)
# define c++ standard and issue all the warning demanded by this standard
add_definitions
(
-std=c++98 -pedantic
)
# VERSION ==================================================================================
# read file
file
(
READ
${
CMAKE_SOURCE_DIR
}
/data/version.txt VERSION_STR
)
# strip spaces
string
(
STRIP
${
VERSION_STR
}
VERSION_STR
)
# get major and minor versions
string
(
REGEX REPLACE
"
\\
.[0-9]*"
""
ELEMENTARY_UTILS_VERSION_MAJOR
${
VERSION_STR
}
)
string
(
REGEX REPLACE
"[0-9]*
\\
."
""
ELEMENTARY_UTILS_VERSION_MINOR
${
VERSION_STR
}
)
# configure
configure_file
(
${
CMAKE_SOURCE_DIR
}
/cmake/Version/ElementaryUtilsVersion.h_in
${
CMAKE_SOURCE_DIR
}
/include/ElementaryUtils/ElementaryUtilsVersion.h
)
# AUTOMOC ==================================================================================
# tell cmake to run Qt moc when necessary
...
...
cmake/Version/ElementaryUtilsVersion.h_in
0 → 100644
View file @
ac182b4d
/**
* @file ElementaryUtilsVersion.h
* @author Pawel Sznajder (NCBJ, Warsaw)
* @date August 8, 2017
* @version 1.0
*
* This file is used to define ElementaryUtils version number and it is set by CMake.
*/
#define ELEMENTARY_UTILS_VERSION(major,minor) (((major) << 8) + (minor))
#define ELEMENTARY_UTILS_VERSION_MAJOR @ELEMENTARY_UTILS_VERSION_MAJOR@
#define ELEMENTARY_UTILS_VERSION_MINOR @ELEMENTARY_UTILS_VERSION_MINOR@
\ No newline at end of file
data/version.txt
0 → 100644
View file @
ac182b4d
1.0
include/ElementaryUtils/.gitignore
0 → 100644
View file @
ac182b4d
/ElementaryUtilsVersion.h
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment