Giter VIP home page Giter VIP logo

cmakeutils's Introduction

Cmakeutils

Collection of utility functions/macros

Usage

Add this repository as submodule of a host repository and,

  1. Add the directory to CMAKE_MODULE_PATH in a CMakeLists.txt of a host repository.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}:path/to/cmakeutils)
include(dbgutils.cmake)
  1. Or include files with path to submodule.
include(path/to/cmakeutils/dbgutils.cmake)

dbgutils.cmake

print_properties(GLOBAL | TARGET [name] | DIRECTORY [name] | SOURCE [name] | TEST [name])

Print all properties set on a entity.

print_all_targets([dir])

Print all buildsystem target under [dir]

install_helpers.cmake

installTargetAs( [exportID] [targets...])

Install multiple targets in standard directories and export it as exportID.

exportTargetFile( Prefix NS resVar exportIDs...)

Export targets specified by exportID as '{Prefix}{exportID}Targets.cmake'. A list of resulting filenames is set on resVar variable.

installClientLib(NS exportID resVar targets...)

installTargetAs() + exportTargetFile(). For each target, this macro adds alias library targets as NS::target.

installPackageConfigSimple( _PKGNAME _VERSION targetFiles...)

Install '{_PKGNAME}Config.cmake' and '{_PKGNAME}ConfigVersion.cmake'. '{_PKGNAME}Config.cmake' will be filled with simple content: including targetFiles beside it.

installImportedTarget

Copy files specified in target properties to standard destination directories.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.