Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

CMake split into lib and project files#38

Closed
ulrikus wants to merge 5 commits intomsrd0:mainfrom
reMarkable:kristian/qt6
Closed

CMake split into lib and project files#38
ulrikus wants to merge 5 commits intomsrd0:mainfrom
reMarkable:kristian/qt6

Conversation

@ulrikus
Copy link

@ulrikus ulrikus commented Jun 8, 2023

What

Based on the changes in the branch msvetkin/feature/cmake-split-project-and-lib, but with a bit more extracted to the top level CMakeLists file. See PR#33 to the base repo. Also, a simple variable declaration for better readability in the httprequest.cpp file.

msvetkin and others added 5 commits March 16, 2022 10:23
That will allow to use QtWebApp as subdirectory with provided Qt version
…roject-and-lib

cmake: Split QtWebApp/CMakeLists into lib cmake and project cmake files
httprequest.cpp:374:44: error: no matching function for call
    to ‘QByteArray::startsWith(QStringBuilder<char [3], QByteArray>)’
374 |                         if (line.startsWith("--" + boundary)) {

httprequest.cpp:406:50: error: no matching function for call
    to ‘QByteArray::contains(QStringBuilder<QByteArray, char [3]>)’
406 |                                 if (line.contains(boundary + "--")) {

Also we don't change the boundary during the loop so we don't need to
create helper strings every iteration.
This flags effects entire project and they should not effect whoever
uses this project as subdirectory.
@ulrikus ulrikus closed this Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants