Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
99065fcd
Commit
99065fcd
authored
Sep 11, 2015
by
Séverin Lemaignan
Browse files
Added (and configure in CMake) a revision.h.in containing the version number
parent
5effa144
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+3
-0
dlib/revision.h.in
dlib/revision.h.in
+6
-0
No files found.
dlib/CMakeLists.txt
View file @
99065fcd
...
@@ -438,6 +438,9 @@ if (NOT TARGET dlib)
...
@@ -438,6 +438,9 @@ if (NOT TARGET dlib)
# overwrite config.h with the configured one
# overwrite config.h with the configured one
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h DESTINATION include/dlib
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h DESTINATION include/dlib
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/../dlib/revision.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h DESTINATION include/dlib
)
install
(
FILES
"LICENSE.txt"
DESTINATION share/doc/dlib
)
install
(
FILES
"LICENSE.txt"
DESTINATION share/doc/dlib
)
endif
()
endif
()
...
...
dlib/revision.h.in
0 → 100644
View file @
99065fcd
#ifndef DLIB_REVISION_H
#define DLIB_MAJOR_VERSION @CPACK_PACKAGE_VERSION_MAJOR@
#define DLIB_MINOR_VERSION @CPACK_PACKAGE_VERSION_MINOR@
#define DLIB_PATCH_VERSION @CPACK_PACKAGE_VERSION_PATCH@
#endif
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