slint-ui / slint-cpp-template

A template for a C++ Application using Slint
https://slint.dev
MIT License
45 stars 11 forks source link

Is there a way to build slint in release mode? #8

Closed datawater closed 1 year ago

datawater commented 1 year ago

I've noticed that cargo builds slint in debug mode, is there a way to build it in release mode?

ogoffart commented 1 year ago

With cmake, to build in release, you need to pass

-DCMAKE_BUILD_TYPE=Release

to your cmake command.

We probably should document that somewhere for those not too familiar with cmake.

datawater commented 1 year ago

Thank you!