I am trying to customize an NSIS installer using CMAKE and CPACK. In particular I would like to include in the generated project.nsi an external script.
Something like:
!include "@SCRIPT_PATH@\@[email protected]"
To do so I am following the example shown here: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cpack/NSISAdvancedTips
I have copied the template script file (NSIS.template.in) and added the required commands. I now need to configure the two variables "@SCRIPT_PATH@ and @SCRIPT_NAME@ accordingly.
I tried to set them like standard CMAKE variables
SET(SCRIPT_PATH "somePath")
SET(SCRIPT_NAME "someName")
but the template variables are simply left blank by CPACK
Any clue?