Skip to content

donghoonpark/cmake_getting_started

Repository files navigation

CMake project getting started guide

This repository gives step-by-step instruction for cmake beginners who are not used to system programming. Assuming all examples and instructions run in Windows OS.

Prerequisite

Note that you can install CMake and Ninja with MSYS environment

MSYS Setup

Proxy Setting (Optional)

If you need to use proxy for web access, please follow instructions below

  1. Open MSYS Shell
  2. Open profile file with command below
nano /etc/profile
  1. Add proxy address setting to last of file
export HTTP_PROXY="IpAddress:Port" # Like: 127.0.0.1:1477
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
  1. Close and reopen msys shell

Install Toolkits

Open MSYS shell and install developemnt environment

pacman -S base-devel mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc ninja 

Add C:\msys64\mingw64\bin to system environment variable

Clone repository

git clone https://github.com/DongHoonPark/cmake_getting_started

Contents

  1. Basic of compiler
  2. Basic of cmake
  3. Simple features
  4. Library linking
  5. External library

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published