Search code examples
c++visual-c++iconspremake

Adding a c++ executable icon to premake5 build script


can someone confirm if and how can I add an C++ aplication icon in a premake5.lua script? The icon property seems to work just for C#. I got an .ico format icon prepared, I just can't find a way how to set it in the premake script.


Solution

  • To extend the @androidu answer for Windows:

    filter { 'system:windows' }
      files { 'resources.rc', '**.ico' }
      vpaths { ['Resources/*'] = { '*.rc', '**.ico' }
    filter {}