New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to CMake #4
Conversation
I've tested this as a dependency of a qmake project (the |
@neochapay I've re-added qdeclarative-boostable. However, I can not test it myself, so someone else needs to do it. I can only test the "not found" path 😉 |
Please consider the modern approach with target names containing double colons, properly set up target_link_libraries() with proper PRIVATE/PUBLIC/INTERFACE linkage, add an alias target with double colons, etc. Consider an application linking as follow:
|
Thanks @Kaffeine! I'm still new to CMake so I'm learning while doing 😉
I guess I applied those changes now? I'm not sure, I have never seen target names with double colons before. I can't find any documentation on how to use namespacing and components properly, but I can build I'm not entirely sure when to set the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it but it looks good to me.
+1
OBS Build fail
|
Interesting. That file is provided by Qt5Declarative, which I would assume |
CMake Find Module (namely It is an issue in Mer packaging that |
qmake won't be available anymore in Qt6 and they're switching to CMake, so let's do the same
qmake won't be developed anymore from Qt6 and they're switching to CMake, so let's do the same.
Should be functionally the same as with qmake (compiles for me both with and without mlite5 anyway), but you can now build with: