Skip to content
Discussion options

You must be logged in to vote

Looks like a bug.

This should work

slint_target_sources(caju ./src/gui/slint/welcome_ui.slint NAMESPACE welcome_ui)
slint_target_sources(caju ./src/gui/slint/library_ui.slint NAMESPACE library_ui)

(tested there : https://github.com/slint-ui/slint/blob/master/api/cpp/tests/multiple-includes/CMakeLists.txt)

But I'm afraid the slint_target_sources is badly named and should have been named slint_target_source maybe. Because if you put things in the same namespace, you'll get symbols conflicts.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pedropark99
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants