Commit 99065fcd authored by Séverin Lemaignan's avatar Séverin Lemaignan

Added (and configure in CMake) a revision.h.in containing the version number

parent 5effa144
......@@ -438,6 +438,9 @@ if (NOT TARGET dlib)
# overwrite config.h with the configured one
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)
endif()
......
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment