8000 GitHub - pawroc/cmake-project-template: Template of cmake based project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pawroc/cmake-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake-project-template

Build

  • Prepare environment by sourcing script prepare-env.sh
source scripts/prepare-env.sh
  • Create build directory
mkdir build
  • Generate Makefile (or another build script by chosing different generator in cmake command)
cd build
cmake ..
  • Build application
cmake --build .

Because in the project there is no libraries' types specified, you can choose what type you need by passing -DBUILD_SHARED_LIBS=ON/OFF switch do cmake command, e.g.

cmake .. -DBUILD_SHARED_LIBS=ON

Above command will generate all unspecified libraries added using add_library() as shared

About

Template of cmake based project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0