[CMake] [CMake + CPack] How to install TTF fonts?

Eric Noulard eric.noulard at gmail.com
Sat Feb 27 05:25:16 EST 2010


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?




-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list