How to use cmake to generate the Qt src?

ElusiveTau

New Member
Hi. I'm interested in the Qt src code and have followed the github install instructions (windows) but am unable to generate a makefile for the UI code. I think I'm suppose to get a UI folder after invoking cmake but I don't see it. I have a pretty basic understanding of what cmake does so perhaps I haven't used the correct cmake flags?

The CMakeLists.txt contains these commands:
option(ENABLE_UI "Enable building with UI (requires Qt)" ON)
option(ENABLE_SCRIPTING "Enable scripting support" ON)
option(ENABLE_HEVC "Enable HEVC encoders" ON)
Are these declarations of command line flags (i.e., I have to enable them when I invoke cmake)? Or are they settings (i.e., they're already set to 'ON'). I tried invoking cmake like so (but I don't see the UI folder in the resulting build output folder):
cmake --preset windows-x64 -DENABLE_UI=ON

Can someone show me how to generate the qt source files?

As for what I'm trying to do with it (in case that's relevant) - I'm just interested in seeing the logic for enabling/disabling buttons when the app changes state.
 
Last edited:
Back
Top