How to setup single build configuration to handle both qmake and CMake code compilation??
-
wrote on 15 Jun 2023, 10:05 last edited by
Dear team,
Requirement is to have build configuration, so that qmake compile the application source code and after that CMake compile unit test cases for each software component. How it can be achieved in QT Creator environment with in single build configuration?
Please let me know if there are existing references for the same, it would be great help.
Thanks,
-
Dear team,
Requirement is to have build configuration, so that qmake compile the application source code and after that CMake compile unit test cases for each software component. How it can be achieved in QT Creator environment with in single build configuration?
Please let me know if there are existing references for the same, it would be great help.
Thanks,
@Brijesh said in How to setup single build configuration to handle both qmake and CMake code compilation??:
be achieved in QT Creator environment with in single build configuration?
It can't - use one build system for both tasks.
-
@Brijesh said in How to setup single build configuration to handle both qmake and CMake code compilation??:
be achieved in QT Creator environment with in single build configuration?
It can't - use one build system for both tasks.
wrote on 15 Jun 2023, 15:20 last edited by@Christian-Ehrlicher
Thank you so much for response.my application implemented as QT quick app and now I want to implement unit test for C++ backend code using the QT test framework. Please teach me what should be the right approach for unit test implementation? Windows 10 is the development environment.
I don't want to have separate project Auto test project. Unit test code implementation need to be implemented for each software component in their respective directory path.
I am stuck and looking for best possible solution for the project.
-
@Christian-Ehrlicher
Thank you so much for response.my application implemented as QT quick app and now I want to implement unit test for C++ backend code using the QT test framework. Please teach me what should be the right approach for unit test implementation? Windows 10 is the development environment.
I don't want to have separate project Auto test project. Unit test code implementation need to be implemented for each software component in their respective directory path.
I am stuck and looking for best possible solution for the project.
Hi,
Did you already saw the QTest overview showing how to write tests with cmake ?
-
Hi,
Did you already saw the QTest overview showing how to write tests with cmake ?
-
@SGaist
Hi,Yes, I have created Auto test project and able to run test project as stand alone.
Thanks,
BrijeshWhat exactly do you mean exactly by Auto test ?
-
wrote on 19 Jun 2023, 09:00 last edited by
@SGaist
Hi,Auto test means , used project template as "Other Project" on New Project- QT Creator window. Under "Other Project" template there are option to choose "Auto Test Project". Auto test project selection allow you to create and use different test framework Qt test, google test, Qt quick test, Boost Test and catch2.
Thanks,
Brijesh -
@SGaist
Hi,Auto test means , used project template as "Other Project" on New Project- QT Creator window. Under "Other Project" template there are option to choose "Auto Test Project". Auto test project selection allow you to create and use different test framework Qt test, google test, Qt quick test, Boost Test and catch2.
Thanks,
BrijeshWhy not use the example from the documentation to implement your tests since you want to use the QtTest module ?
1/8