A cross-platform hello-world application created with cpp and cmake to demonstrate how to use an abstract class, with optional gprof profiling for Linux systems.
N/A
mkdir build
cd build
cmake ..
make
./build/hello-world
./build/hello-world #the executable must be run once first.
gprof ./build/hello-world
mkdir build;
cd build;
cmake ..;
cmake --build . --config RelWithDebInfo;
#set(CMAKE_BUILD_TYPE ...) in CMakeLists.txt is ignored by MSVC.
#On the other hand, --config option in cmake --build ... is ignored by GCC.
./RelWithDebInfo/hello-world.exe
This project is licensed under the MIT License - see the LICENSE file.