Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1022 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 1022 Bytes

Qt.UnitTest

Shows how to use Qt unit tests only by programming code (c++17).

qt

Generate and build

Qt Creator

To build these projects, open Qt.UnitTest.pro file with Qt Creator.

CMake

To build this project, open "Terminal" and type following lines:

Set CMAKE_PREFIX_PATH with Qt6 install path.

Windows :

mkdir build
cd build
cmake ..
start ./Qt.UnitTest.sln

macOS :

mkdir build
cd build
cmake .. -G "Xcode"
open ./Qt.UnitTest.xcodeproj

Linux with Code::Blocks :

mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Qt.UnitTest.cbp > /dev/null 2>&1

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug
./AnyProject