Commit ac17445c authored by Guillaume Pasero's avatar Guillaume Pasero

DOC: fill and install a VERSION file

parent 43c7a996
......@@ -91,6 +91,8 @@ set(OTB_VERSION_MINOR "6")
set(OTB_VERSION_PATCH "0")
set(OTB_VERSION_STRING "${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}.${OTB_VERSION_PATCH}")
string(TIMESTAMP OTB_BUILD_TIMESTAMP)
if(NOT OTB_INSTALL_RUNTIME_DIR)
set(OTB_INSTALL_RUNTIME_DIR bin)
endif()
......@@ -337,6 +339,10 @@ install(FILES ${OTB_FIND_PACKAGE_SCRIPTS} DESTINATION ${OTB_INSTALL_PACKAGE_DIR}
# install(FILES "LICENSE" "NOTICE" "README.txt" DESTINATION ${OTB_INSTALL_DOC_DIR} COMPONENT Runtime)
install(FILES "LICENSE" DESTINATION ${OTB_INSTALL_DOC_DIR} COMPONENT Runtime)
# Configure and install VERSION file
configure_file(VERSION VERSION @ONLY)
install(FILES ${OTB_BINARY_DIR}/VERSION DESTINATION ${OTB_INSTALL_DOC_DIR} COMPONENT Runtime)
if(BUILD_TESTING)
add_subdirectory(Utilities/InstallTest)
endif()
......
OTB Version: @OTB_VERSION_STRING@
Build Date: @OTB_BUILD_TIMESTAMP@
@OTB_GIT_STATUS_MESSAGE@
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