[CMake] [CMake + CPack] How to install TTF fonts?
Anatoly Shirokov
shirokov_a at mail.ru
Sat Feb 27 17:29:23 EST 2010
Actually we need to pass local exist file. In other words, the following
!insertmacro InstallTTFFont \\\"$INSTDIR\\\\bin\\\\V100026_.TTF\\\"
must be replace on
!insertmacro InstallTTFFont \\\"${CMAKE_CURRENT_SOURCE_DIR}\\\\fonts\\\\v100026_.ttf\\\"
The NSIS includes local exist file to setup and there is no need copy
this file into installation directory.
Eric, thank you for you time !
Eric Noulard ?????:
> 2010/2/27 Anatoly Shirokov <shirokov_a at mail.ru>:
>
>> Hi there!
>>
>> Does anybody know how to install own ttf fonts?
>>
>> I have installed FontName but the following:
>> SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
>> StrCpy \\\$FONT_DIR \\\$FONTS
>> !insertmacro InstallTTFFont \\\"$INSTDIR\\\\bin\\\\V100026_.TTF\\\"
>> ")
>>
>
> This looks ok.
>
> [...]
>
>
>> Error in macro InstallTTFFont on macroline 14
>>
>> Error in script
>> "C:/Work/Test/cpack/build/_CPack_Packages/win32/NSIS/project.nsi" on line
>> 694 -- aborting creation process
>>
>
> This looks like an NSIS error in your nsis script may be you should
> ask help on NSIS related mailing list?
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100228/354f23e6/attachment.htm>
More information about the CMake
mailing list