Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 980 Bytes

File metadata and controls

58 lines (39 loc) · 980 Bytes

HelloWorldConsole

The classic first application "Hello World" console application.

Source

HelloWorldConsole.cpp

CMakeLists.txt

Output

Hello, World!

Build and run

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

Windows :

mkdir build && cd build
cmake .. 
start HelloWorldConsole.sln

Select HelloWorldConsole project and type Ctrl+F5 to build and run it.

macOS :

mkdir build && cd build
cmake .. -G "Xcode"
open ./HelloWorldConsole.xcodeproj

Select HelloWorldConsole project and type Cmd+R to build and run it.

Linux with Code::Blocks :

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

Select HelloWorldConsole project and type F9 to build and run it.

Linux :

mkdir build && cd build
cmake .. 
cmake --build . --config Debug
./HelloWorldConsole