Mode77
Mode77

Reputation: 1041

How do I configure CLion to show final executable size after build?

Is there a setting in CLion to have the size of the final executable show after a build?

Upvotes: 0

Views: 187

Answers (1)

Max Banaev
Max Banaev

Reputation: 926

You can use external tools for it. Please try to do the following:

  1. Edit Run configuration
  2. Add before lunch new action (Run External tool).

For example, you can use size.exe MinGW tool if you on the Windows platform.

<path_to_mingw>\bin\size.exe $CMakeCurrentProductFile$

  1. Run the build configuration

Upvotes: 1

Related Questions