Skip to content
/ c-lean-make Public template

CMake can have a lot of boilerplate code. This Repo generates alot of it for you but comes with some conventions to achive that.

Notifications You must be signed in to change notification settings

rawbby/c-lean-make

Repository files navigation

C(LEAN)MAKE

Project skeleton for less verbose CMake scripts. Creates tree new add_directory commands that create magic directories.

add_libraries_directory(<dir>)
add_executables_directory(<dir>)
add_tests_directory(<dir>)

add_libraries_directory(dir)

The libraries directory contains only libraries. Each subdirectory with a target.cmake file marks a library root. A library is either static library or a header only library depending on the presence of a src directory. (src/ -> static_library)

In the target.cmake file the library target can be configured. The target is already created with the name ${TARGET_NAME}.

add_executables_directory(dir)

...

add_tests_directory(dir)

...

About

CMake can have a lot of boilerplate code. This Repo generates alot of it for you but comes with some conventions to achive that.

Resources

Stars

Watchers

Forks

Releases

No releases published