AnBenLa / Simple_ZeroMQ_CMake_Cpp_Project_Example

Simple CMake project to setup ZeroMQ using git submodules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation on Windows:

It is recommended to use an IDE (CLion, Visual Studio, ...) but everything can be done without as well

Requirements:

Note: One way to install MinGW 64:

  • install MSYS2
  • open the newly installed MSYS2 Shell
  • install MinGW 64 using the MSYS2 Shell
pacman -S mingw-w64-x86_64-gcc
  • add the folder MSYS2_root/mingw64/bin (i.e. C:\msys64\mingw64\bin) to your PATH environment variable

You can also follow this tutorial to install MinGW 64.

Step 0: open the windows console (cmd) and go into the folder where the project files should be saved

Step 1: clone the repository

git clone --recursive https://github.com/AnBenLa/ZeroMQ_CMake_Cpp_Project_Example

Note: this will copy the necessary project files into the current directory.

Step 2: create a build folder in the project folder

cd ZeroMQ_CMake_Cpp_Project_Example
mkdir build

Step 4: inside the build folder generate the cmake project

cd build
cmake ..

Step 5: make the project and execute the application

cmake --build . --target zmq_server
./zmq_server.exe

Note: Depending on the used cmake tool the the created zmq_server.exe might be in a Debug or Release subdirectory.

About

Simple CMake project to setup ZeroMQ using git submodules.


Languages

Language:C++ 66.8%Language:CMake 33.2%