Skip to content

A simple c++ language project template using CMake build scripts and git.

License

Notifications You must be signed in to change notification settings

todatamining/cmake-program-cxx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake-program-cxx


Description.

Simpe CMake project template for C++ program. seems like a good candidate for adding on additions the you may find useful for basic C++ programs

Requirements.

These are the base requirements to build and use for this project from a source package (as described below):

  • CMake v3.12.2 or newer.

Using CMake.

This project comes with a CMake build script ( that can be used on a wide range of platforms ("C" stands for cross-platform. ). If you don't have CMake installed already, you can download it for free from CMake.

To build the project, we first need to create a separate build directory:

mkdir build

Now that we've created our build directory (assuming it's created in the projct root), we can cd into it and run cmake and pass the parent directory path to it, which is where the CMakeLists.txt file is located:

cd build
cmake ../

Once cmake is done generating makefiles, we can build the project by running make inside the build directory:

make

This will build the project.

About

A simple c++ language project template using CMake build scripts and git.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 90.9%
  • C++ 9.1%