qhexedit2 icon indicating copy to clipboard operation
qhexedit2 copied to clipboard

Please provide CMake config files

Open kossebau opened this issue 3 months ago • 2 comments

With Qt6 itself having switched to CMake, more and more projects building on Qt also follow that.

In CMake for finding dependencies it is most convenient to have CMake config files provided by the library.

While QHexEdit provides pkgconfig files and one can use them in some way within CMake-based builds, it comes with some bit of struggle. So CMake config files instead would be most convenient.

Perhaps QHexEdit might switch itself from qmake to cmake soon? Then providing CMake config files might be most simple.

kossebau avatar Oct 07 '25 19:10 kossebau

For me, it doesn't make sense to switch to CMake at the moment. I also have no experience with it. Integrating QHexEdit into a CMake project will probably not require much effort.

If really needed, please pull request.

Simsys avatar Oct 09 '25 09:10 Simsys

Integrating QHexEdit into a CMake project will probably not require much effort.

Not much effort, yet of course native support would be better and less fragile :)

Solved for now in my case by (traditionally over-complicated polyfill Find*.cmake file) to yield the desired simple usage by

find_package(QHexEdit 0.9.0)

target_link_libraries(MyProject PRIVATE QHexEdit)

which can be found here, in case someone will come across for the same need and goes "so, how?": https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/829/diffs#b72ee1fd2106514443da685057fbc4a797bfffe4

Perhaps could also be added as copy to the qhexedit sources or docs, so people with such need can more easily find it and pass that hurdle in their cmake-based projects? License should make that fine to do, happy to share with the world.

If really needed, please pull request.

Mainly reported to make aware of some consumer needs :)

kossebau avatar Oct 09 '25 12:10 kossebau