Skip to content
Snippets Groups Projects
Commit ac17445c authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

DOC: fill and install a VERSION file

parent 43c7a996
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,8 @@ set(OTB_VERSION_MINOR "6") ...@@ -91,6 +91,8 @@ set(OTB_VERSION_MINOR "6")
set(OTB_VERSION_PATCH "0") set(OTB_VERSION_PATCH "0")
set(OTB_VERSION_STRING "${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}.${OTB_VERSION_PATCH}") set(OTB_VERSION_STRING "${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}.${OTB_VERSION_PATCH}")
string(TIMESTAMP OTB_BUILD_TIMESTAMP)
if(NOT OTB_INSTALL_RUNTIME_DIR) if(NOT OTB_INSTALL_RUNTIME_DIR)
set(OTB_INSTALL_RUNTIME_DIR bin) set(OTB_INSTALL_RUNTIME_DIR bin)
endif() endif()
...@@ -337,6 +339,10 @@ install(FILES ${OTB_FIND_PACKAGE_SCRIPTS} DESTINATION ${OTB_INSTALL_PACKAGE_DIR} ...@@ -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" "NOTICE" "README.txt" DESTINATION ${OTB_INSTALL_DOC_DIR} COMPONENT Runtime)
install(FILES "LICENSE" 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) if(BUILD_TESTING)
add_subdirectory(Utilities/InstallTest) add_subdirectory(Utilities/InstallTest)
endif() endif()
......
OTB Version: @OTB_VERSION_STRING@
Build Date: @OTB_BUILD_TIMESTAMP@
@OTB_GIT_STATUS_MESSAGE@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment