Skip to content

Simple script to generate an automatic CMakeLists for your CMake projects in C++

Notifications You must be signed in to change notification settings

antoninklopp/Automatic_CMakeLists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatic_CMakeLists

Simple script to generate an automatic CMakeLists for your CMake projects in C++

How to use the script

Put the script in your project folder.
Your project folder should be organized like this :

  • project folder
    • src
    • test
    • automated_CMake_Lists.py

Launch the script. It should create a CMakeLists.txt in each folder.
Than, use CMake as usual.

You can find a test project, that illustrates how to organize your folders for your program to work.

Adding information to CMakeLists

If you are using other dependencies than the one in your project you ca put a requirement.txt in the project folder to add some text in the global CmakeLists.txt

You should do this if you are using openCV or OpenGL for exemple.

Questions, improvements?

Raise an issue or a pull requests if you have any problem.

About

Simple script to generate an automatic CMakeLists for your CMake projects in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published