Skip to content

funkey/cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

CMake build system
==================

Modules are libraries and binaries. A project consists of several libraries and
binaries.

For your project, create a top level CMakeLists.txt, containing at least the
following, assuming that your libraries are defined in 'libraries' and your
binaries are in 'binaries':

  include(${CMAKE_SOURCE_DIR}/cmake/include/define_module.cmake)

  add_subdirectory(libraries)
  add_subdirectory(binaries)

For each module, simply add a line like

  define_module(
      <name of module>
      [BINARY|LIBRARY]
      [SOURCES <source files>]
      [LINKS <other modules and 3rd parties>]
      [INCLUDES <additional includes needed by the module>])

to the respective CMakeLists.txt. If not specified, the default is to generate
a BINARY module from all *.cpp files in the directory and subdirectories.

About

module-based cmake build system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •