CMake - Set LSApplicationCategoryType

Hi all!

I’ve been working on migrating our project to a completely CMake based one. Awesome work you’ve done with JUCE 6!

It was quite easy to set the Hardened Runtime and other properties via JUCE’s cmake commands. There’s one thing I can’t seem to wrap my head around, though. In order to properly validate and notarize MacOS apps, the LSApplicationCategoryType key has to be set in the Info.plist file. I can’t find any mention of this in the JUCE CMake docs. Is there an easy way to set this key using JUCE’s cmake commands?

Thanks!

check PLIST_TO_MERGE

Beware that the string passed to PLIST_TO_MERGE must be itself a valid plist XML document

Awesome, thanks!

I was struggling around with PLIST_TO_MERGE yesterday, but wasn’t quite sure what the format of the string should be, or if it should be an actual filename. Works great using the file cmake command

file(READ test.plist AUX_PLIST)

and then passing that variable to PLIST_TO_MERGE.