Prerequisites can be found here
This example is to show the basics of CMake and how to compile a C++ file We introduce these concepts
- project ()
- add_executable ()
- Configure with cmake ..
- Cross-platform compiling with cmake --build .
Steps :
cd MYBUILD
cmake ..
cmake --build .
This example is to show the basics of CMake We introduce these concepts
- project ()
- add_executable ()
- Configure with cmake ..
- Cross-platform compiling with cmake --build .
cd SimpleApp
cd MYBUILD
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build .
This example is to show the basics of Qt5 We introduce these concepts
- QApplication object
- find_package(Qt5 COMPONENTS Widgets)
- qt5 link with module
cd QtHelloWorld
cd MYBUILD
cmake -DQt5_DIR=Path_to_Qt5 -G "Visual Studio 14 2015 Win64" ..
//For exemple, for Windows : -DQt5_DIR=C:\Qt\5.9.2\msvc2015_64\lib\cmake\Qt5
cmake --build .