Basic C++ Project to help quick start a C++ compiling and testing environment.
Either get the latest version from GitHub or extract the archive to a directory.
Suggested way of manual building:
- if the directory is named CppProjectTemplate/, create another directory at the same level with the name CppProjectTemplate-build/.
- in CppProjectTemplate-build/, type cmake ../CppProjectTemplate/.
- on Linux, you can test type make, on Windows with Visual Studio, open the generated solution file.
Building with QtCreator:
- Open the CMakeFiles.txt from QtCreator.
- Choose the build directory when asked.
- Run CMake when asked.
CppProjectTemplate creates two executables.
One is the application executable and is named cpp_project_template. It displays a Hello World typical message.
The other is named cpp_project_template_tests and runs the tests.
Both are console application that you can run either from a terminal or from an IDE.