summaryrefslogtreecommitdiffstats
path: root/cmake/FindWrapSystemMd4c.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Align FindWrapSystemMd4c with Other FindWrapSystem* ModulesAmir Masoud Abdol2022-10-281-13/+29
| | | | | | | | | | | | | | FindWrapSystemMd4c now uses `find_package_handle_standard_args` like all the other similar modules. This also fixes a case where CMake config log for finding `md4c` was missing the CMAKE_MESSAGE_CONTEXT, e.g., `[QtBase]`, which was caused by using `find_package` and let it log outside the scope of the project, and not `QUIET`ing it. In addition, the `CONFIG` parameter of the `find_package` was removed to avoid unexpected issues when 3rd party package managers were used. Change-Id: Id0bee436e8965452f9089c0e8c8793c3f1b63f02 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-231-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: I5d3ef70a31235868b9be6cb479b7621bf2a8ba39 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-08-031-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I3b98cdc55ead806ec81ce09af9271f9b95af97fa Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix support for using system supplied md4c libraryNiclas Rosenvik2021-06-031-0/+24
Add FindWrapSystemMd4c.cmake so that the old md4c target can be used as well as the new one and set WrapSystemMd4c_FOUND. Link to the imported target WrapSystemMd4c::WrapSystemMd4c if the system library is used. Add qt_find_package line to find the package in configure.cmake. Fix the condition for enabling system-textmarkdownreader, it includes testing for textmarkdownreader because even if the code would compile correctly without it, it looks strange when the output says "textmarkdownreader no" and under "using system libmd4c yes" even if libmd4c is not used. Use system include when system-markdownreader is enabled. Add library mapping for libmd4c. Change-Id: Id5d5b13d6691a8c1cdf627238887977c847c1e67 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>