Write version.txt and rosegarden.spec to the binary directory

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/3/head
aneejit1 4 years ago committed by TDE Gitea
parent 18f1a4426d
commit c8a7896741

@ -116,8 +116,8 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
configure_file( config.h.cmake config.h @ONLY )
# create and install the version file
FILE(WRITE version.txt "${VERSION}\n")
INSTALL( FILES version.txt DESTINATION ${DATA_INSTALL_DIR}/rosegarden )
FILE(WRITE "${CMAKE_BINARY_DIR}/version.txt" "${VERSION}\n")
INSTALL( FILES "${CMAKE_BINARY_DIR}/version.txt" DESTINATION ${DATA_INSTALL_DIR}/rosegarden )
# configure the RPM spec
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/rosegarden.spec.in" "${CMAKE_SOURCE_DIR}/rosegarden.spec" IMMEDIATE @ONLY)
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/rosegarden.spec.in" "${CMAKE_BINARY_DIR}/rosegarden.spec" IMMEDIATE @ONLY)

Loading…
Cancel
Save