Skip to content

Small example of how to lay out a C++ project using CMake to link libraries to a main binary, setup testing

Notifications You must be signed in to change notification settings

stevejryan/cmake_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake_project

Small example of how to lay out a C++ project using CMake to link libraries to a main binary, setup testing

Typical project structure:

|   |-- CMakeLists.txt
|   |-- build/  # All generated build files
|   |-- bin/
|   |   |-- tools_demo
|   |-- lib/
|   |   |-- libtools.a
|   |-- src/
|   |   |-- CMakeLists.txt
|   |   |-- project_name
|   |       |-- CMakeLists.txt
|   |       |-- tools.h
|   |       |-- tools.cpp
|   |       |-- tools_demo.cpp
|   |-- tests/  # Tests for your code
|   |   |-- test_tools.cpp
|   |   |-- CMakeLists.txt
|   |-- readme.md  # How to use your code```

About

Small example of how to lay out a C++ project using CMake to link libraries to a main binary, setup testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published