Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS [SOLVED]

2010-04-14 Thread Bill Hoffman
Another way to do this without the insane \ stuff, is to use a configured file like CMake does: CONFIGURE_FILE("${CMake_SOURCE_DIR}/CMakeCPackOptions.cmake.in" "${CMake_BINARY_DIR}/CMakeCPackOptions.cmake" @ONLY) SET(CPACK_PROJECT_CONFIG_FILE "${CMake_BINARY_DIR}/CMakeCPack

Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS [SOLVED]

2010-04-14 Thread Yegor Yefremov
Hi Droscy, > Hi, probably you need to escape the backslashes 3 times, because when > cmake passes the option to cpack, it removes one escape, and cpack does > the same when creating nsis file. And you can also use single quote mark > in order to get the quotation on the final nsis file. > > So yo

Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS

2010-04-13 Thread Droscy
Hi, probably you need to escape the backslashes 3 times, because when cmake passes the option to cpack, it removes one escape, and cpack does the same when creating nsis file. And you can also use single quote mark in order to get the quotation on the final nsis file. So your command should be set

Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS

2010-04-13 Thread Tyler Roscoe
On Tue, Apr 13, 2010 at 12:39:13PM +0200, Yegor Yefremov wrote: > With this expression > > set(CPACK_NSIS_CREATE_ICONS "CreateShortCut > \$SMPROGRAMS\\$STARTMENU_FOLDER\\${PROJECT_NAME}.lnk > \$INSTDIR\\${PROJECT_NAME}.exe") > > I can successfully create a package, but cmake/cpack shows a warni

[CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS

2010-04-13 Thread Yegor Yefremov
I'm using CPack for NSIS and would like to place my exe file in $SMPROGRAMS\$STARTMENU_FOLDER and not in $SMPROGRAMS\$STARTMENU_FOLDER\bin. The only way to do it is using CPACK_NSIS_CREATE_ICONS. With this expression set(CPACK_NSIS_CREATE_ICONS "CreateShortCut \$SMPROGRAMS\\$STARTMENU_FOLDER\\