I need to create a deb file from cmake that needs to build a directory in ${USER} on the target machine
"{user}/some_directory".
The problem is that the deb file on creation already resolve the ${user} and it does not use the ${user} on the target machine.
What have I tried:
install(FILES ${APP_ROOT}/Configuration/${PROJECT_NAME}.xml
DESTINATION ${USER}/Run/${PROJECT_NAME}/Configuration)
Also, I tried to play DESTDIR make DESTDIR=/home/john install but this does not working on deb files on the target machine.
Thanks