Skip to content

Because our project is cross-platform, I think that all the underlying modules are compiled with CMake, So I compiled the basic knowledge of cmake for colleagues' reference.

Notifications You must be signed in to change notification settings

imacwink/LearnCMake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

    _                            _____ __  __       _        
   | |                          / ____|  \/  |     | |       
   | |     ___  __ _ _ __ _ __ | |    | \  / | __ _| | _____ 
   | |    / _ \/ _` | '__| '_ \| |    | |\/| |/ _` | |/ / _ \
   | |___|  __/ (_| | |  | | | | |____| |  | | (_| |   <  __/
   |______\___|\__,_|_|  |_| |_|\_____|_|  |_|\__,_|_|\_\___|
                                                             

Why prepare this tutorials ?

Recently, I am doing engineering transformation. Because our project is cross-platform, I think that all the underlying modules are compiled with CMake, and I developed on the Mac, In order to better prepare for this Examples, I specifically talked about the dual system installed on my local machine, which supports Ubuntu 18.04.2.

Introduction

CMake is a cross-platform, open-source build system generator. For full documentation visit the CMake Home Page_ and the CMake Documentation Page. The CMake Community Wiki also references useful guides and recipes.

Environment

  • VS Code Version 1.53
  • Tree Version 1.7.0
  • gcc Version 7.5.0 (c/c++ compiler)
  • g++ Version 7.5.0 (c/c++ compiler)
  • CMake Version 3.10.2
  • GUN Make Version 4.1 Built for x86_64-pc-linux-gnu
  • System Ubuntu 18.04.2 GNU/Linux

Some specific examples may require other tools including:

  $ sudo apt-get install libboost-all-dev
  $ sudo apt-get install libprotobuf-dev
  $ sudo apt-get install protobuf-compiler
  $ sudo apt-get install cppcheck
  $ sudo apt-get install clang-3.6
  $ sudo apt-get install ninja-build
  $ sudo apt-get install python3 python3-pip
  $ sudo pip3 install conan

Include

  • concept - Mainly include CMake basic grammar learning.
  • basic - Basic examples in this directory show how the setup a CMake project.

Supported Platforms

  • Microsoft Windows
  • Apple macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Solaris
  • AIX

About

Because our project is cross-platform, I think that all the underlying modules are compiled with CMake, So I compiled the basic knowledge of cmake for colleagues' reference.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published