Skip to content

DigraJatin/Cpp-Build-Env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repository is create to learn about C++ Build systems.

HelloCMake

  • First program using cmake.
  • used g++ compiler and ninja as a build system.
  • Can you VS Code UI to trigger build and run.
  • Or can use commands ->
    • cd into build dir inside project i.e, go to "C++ Build Env\build"
    • Run command for cmake configuration step - "cmake .. -G Ninja"
    • Run build command - "cmake --build ."
    • Run HelloCMake.exe to see output.

RestApiDemo

  • Learn to integrate single header third party code into main file.
  • Learn about basic Rest Api.
  • Build using msvc, since httplib requires windows specific functions.
  • Build using "cmake --build ."
  • Run the server and use curl commands to test response -> - curl http://localhost:8080/health - curl "http://localhost:8080/hello?name=Jatin"

Vcpkg01

  • Learn about how to integrate a third party lib like poco,fmt into project using vcpkg.
  • Used G++, Ninja, vcpkg, CMake
  • Command to configure once or same can be done is .vscode settings.json file - cmake -S . -B build ^ -G "Ninja" ^ -DCMAKE_TOOLCHAIN_FILE="C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake" ^ -DVCPKG_TARGET_TRIPLET=x64-mingw-static ^ -DCMAKE_C_COMPILER=gcc ^ -DCMAKE_CXX_COMPILER=g+

About

Repo to create projects to study about C++ build systems and differenet evns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages