Skip to content

A cross-platform hello-world application created with cpp and cmake, with optional gprof profiling for Linux systems.

Notifications You must be signed in to change notification settings

WaiTsun-Yeung/hello_world_cpp_cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello World CPP CMake

Introduction

A cross-platform hello-world application created with cpp and cmake, with optional gprof profiling for Linux systems.

Dependencies

N/A

Build (Linux)

mkdir build
cd build
cmake ..
make

Run (Linux)

./build/hello-world

Profiling (Linux)

./build/hello-world #the executable must be run once first.
gprof ./build/hello-world

Build and Run (Windows)

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

About

A cross-platform hello-world application created with cpp and cmake, with optional gprof profiling for Linux systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages