Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Common CMake modules

branch: master

Merge pull request #135 from eile/master

Enable extra exclude files for lcov report
latest commit 2a8b4745a4
Daniel Nachbaur tribal-tec authored April 17, 2014
Octocat-spinner-32 2.8.3 Improve support for CMake 2.8 August 13, 2012
Octocat-spinner-32 2.8.8 Make PackageConfig work on CMake versions < 2.8.8 January 14, 2013
Octocat-spinner-32 cpp Added (PROJECT)_INL definitions April 09, 2014
Octocat-spinner-32 icons Update icons with PD versions March 06, 2014
Octocat-spinner-32 .gitignore
Octocat-spinner-32 BuildApplication.cmake Addendum to #83: February 12, 2014
Octocat-spinner-32 BuildConfig.cmake
Octocat-spinner-32 BuildLibrary.cmake Addendum to #83: February 12, 2014
Octocat-spinner-32 Buildyard.cmake Deprecate useless update_file February 28, 2014
Octocat-spinner-32 CMakeInstallPath.cmake Modularize Common.cmake a bit July 29, 2013
Octocat-spinner-32 Common.cmake Merge branch 'master' of https://github.com/eile/CMake April 09, 2014
Octocat-spinner-32 CommonApplication.cmake Allow additional common_application parameters, e.g,, MACOSX_BUNDLE February 24, 2014
Octocat-spinner-32 CommonCPPCTest.cmake
Octocat-spinner-32 CommonCPack.cmake Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 CommonCTest.cmake Fix failing include April 09, 2014
Octocat-spinner-32 CommonCode.cmake Merge branch 'master' of https://github.com/Eyescale/CMake March 04, 2014
Octocat-spinner-32 CommonLibrary.cmake CR #115 April 01, 2014
Octocat-spinner-32 CommonProcess.cmake Introduce and use CommonProcess February 20, 2014
Octocat-spinner-32 Compiler.cmake Make deprecation warnings on by default April 14, 2014
Octocat-spinner-32 CompilerVersion.cmake Fix compatibility with CMake < 2.8.3 November 27, 2012
Octocat-spinner-32 Coverage.cmake Enable extra exclude files for lcov report April 17, 2014
Octocat-spinner-32 CppcheckTargets.cmake Bump to 1.61 of cppcheck (1.60 gives segfault in dash) April 09, 2014
Octocat-spinner-32 Doxyfile Add @env alias to document environment variables April 04, 2014
Octocat-spinner-32 DoxygenRule.cmake Added a target to generate doxygen documentation without coverage tests. April 08, 2014
Octocat-spinner-32 Doxygit.cmake Merge branch 'master' of https://github.com/eile/CMake April 09, 2014
Octocat-spinner-32 FindAtlas.cmake Added find script for ATLAS (optimized lapack/blas) library January 10, 2014
Octocat-spinner-32 FindCBLAS.cmake Unified solution for LAPACK/CBLAS February 18, 2014
Octocat-spinner-32 FindCairo.cmake
Octocat-spinner-32 FindDNSSD.cmake Implement quiet and required for FindVTune March 20, 2013
Octocat-spinner-32 FindDisplayCluster.cmake Reflect stream library renaming January 13, 2014
Octocat-spinner-32 FindFCGI.cmake Added find script for FastCGI (used by DisplayCluster WebService) January 28, 2014
Octocat-spinner-32 FindFFMPEG.cmake Add finders required for DisplayCluster May 13, 2013
Octocat-spinner-32 FindGLEW_MX.cmake Removed unused parameters (argc, argv ) for testing compilations in G… November 07, 2013
Octocat-spinner-32 FindGPFS.cmake Add GPFS API finder March 22, 2013
Octocat-spinner-32 FindGTS.cmake Implement QUIET for GTS finder July 25, 2013
Octocat-spinner-32 FindLibJpegTurbo.cmake Another libturbojpeg finder fix October 30, 2013
Octocat-spinner-32 FindMAGELLAN.cmake Fix Magellan OS X finder May 21, 2013
Octocat-spinner-32 FindMKL.cmake Add FindMKL script (forked from external github repository). Not yet … March 25, 2013
Octocat-spinner-32 FindMaya.cmake Updating the finder to look into Maya 2013 directory. July 11, 2013
Octocat-spinner-32 FindNumPy.cmake Fix quiet for FindNumPy January 10, 2013
Octocat-spinner-32 FindOFED.cmake Implement QUIET for FindOFED August 08, 2012
Octocat-spinner-32 FindOpenMesh.cmake
Octocat-spinner-32 FindPoppler.cmake Improved the FindPoppler cmake script (component-based, not dependant… January 14, 2014
Octocat-spinner-32 FindQwt.cmake Add finder Qwt library July 18, 2012
Octocat-spinner-32 FindRealityGrid.cmake Add RealityGrid finder June 18, 2012
Octocat-spinner-32 FindSAGE.cmake Update SAGE finder to meet Buildyard installation January 29, 2013
Octocat-spinner-32 FindSpatialIndex.cmake added file for libSpatialIndex April 16, 2014
Octocat-spinner-32 FindTUIO.cmake Add TUIO finder May 14, 2013
Octocat-spinner-32 FindTuvok.cmake Added TUVOK library September 18, 2013
Octocat-spinner-32 FindUDT.cmake Implement QUIET for UDT finder July 25, 2013
Octocat-spinner-32 FindVRPN.cmake
Octocat-spinner-32 FindVTune.cmake Deprecate useless update_file February 28, 2014
Octocat-spinner-32 FindWiiuse.cmake Minor fixes November 20, 2012
Octocat-spinner-32 FindXDR.cmake Add finder foro XDR library June 24, 2012
Octocat-spinner-32 Findcppcheck.cmake Proper version check for cppcheck January 27, 2014
Octocat-spinner-32 Findcppcheck.cpp Improve cppcheck compatibility January 27, 2014
Octocat-spinner-32 Findgmock.cmake Adding find package support for gmock, jsoncpp, zeromq, and zeromq c+… October 22, 2013
Octocat-spinner-32 Findhwloc.cmake
Octocat-spinner-32 Findjack.cmake Add jack finder for SAGE February 01, 2013
Octocat-spinner-32 Findlo.cmake Add lo finder for SAGE February 01, 2013
Octocat-spinner-32 Findv4l2.cmake v4l2 & yasm finder for SAGE February 01, 2013
Octocat-spinner-32 Findvncserver.cmake Add vnc finder for SAGE February 01, 2013
Octocat-spinner-32 Findyasm.cmake v4l2 & yasm finder for SAGE February 01, 2013
Octocat-spinner-32 Findzmqcpp.cmake Adding find package support for gmock, jsoncpp, zeromq, and zeromq c+… October 22, 2013
Octocat-spinner-32 GNUModules.cmake Update documentation February 13, 2014
Octocat-spinner-32 GitExternal.cmake Merge branch 'master' of https://github.com/Eyescale/CMake April 02, 2014
Octocat-spinner-32 GitInfo.cmake Obtain GIT_STATE silent, set to no-tag on error April 08, 2014
Octocat-spinner-32 GitTargets.cmake Typo February 13, 2014
Octocat-spinner-32 GithubInfo.cmake Not overwriting the PROJECT_ISSUES_URL if already set. April 04, 2014
Octocat-spinner-32 GithubOrganization.cmake Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 InstallFiles.cmake Common adaptations for more complex projects than Hello: February 14, 2014
Octocat-spinner-32 InstallSymlink.cmake Trying to fix InstallSymlink.cmake on Windows March 28, 2012
Octocat-spinner-32 LSBInfo.cmake Refactor out LSBInfo gathering August 15, 2012
Octocat-spinner-32 LibFindMacros.cmake Make TurboJpeg finding more informative August 20, 2013
Octocat-spinner-32 MPI.cmake Merge branch 'master' of https://github.com/delalond/CMake March 20, 2013
Octocat-spinner-32 MacPorts.cmake Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 Maturity.cmake Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 OSSCPack.cmake Rename file November 04, 2013
Octocat-spinner-32 PackageConfig.cmake Denoise PackageConfig April 14, 2014
Octocat-spinner-32 Portfile Fix make Macports portfilename configurable November 20, 2012
Octocat-spinner-32 ProjectInfo.cmake Improve documentation March 21, 2014
Octocat-spinner-32 ProjectInfo.in.cmake Modifications in setup of issues link. March 31, 2014
Octocat-spinner-32 PurpleInstallPDB.cmake Separate and install object manager template instantiation, clean up … January 03, 2011
Octocat-spinner-32 README.md Update README.md March 04, 2014
Octocat-spinner-32 Revision.cmake General Improvements done for the Template project: February 11, 2014
Octocat-spinner-32 SCM.cmake Merge cleanup November 05, 2012
Octocat-spinner-32 StringifyShaders.cmake
Octocat-spinner-32 System.cmake Minor system.cmake tweak February 26, 2013
Octocat-spinner-32 TargetHooks.cmake Exclude Qt moc files from cppcheck. March 11, 2014
Octocat-spinner-32 TestCPP11.cmake Add test for C++11 template aliases November 04, 2013
Octocat-spinner-32 UpdateFile.cmake Deprecate useless update_file February 28, 2014
Octocat-spinner-32 UpdateGitExternal.cmake Deprecate useless update_file February 28, 2014
Octocat-spinner-32 UploadPPA.cmake Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 WriteModuleFile.cmake Add support for snapshot module December 18, 2013
Octocat-spinner-32 cdash.bat CDash Win32 batch script July 24, 2011
Octocat-spinner-32 cdash.plist Update launchctl CDash plist March 30, 2011
Octocat-spinner-32 github.css Foundations to transform documentation repository into directory: March 05, 2014
Octocat-spinner-32 html2rst.py Fix README.rst generation December 15, 2010
Octocat-spinner-32 ittnotify.h Add VTune notification API support March 20, 2013
Octocat-spinner-32 rpmPostInstall.sh Run ldconfig after rpm installation, second try July 18, 2012
README.md

CMake Modules

This repository contains common CMake modules. To use it, create a .gitexternals in your project:

# -*- mode: cmake -*-
# CMake/common https://github.com/Eyescale/CMake.git master

Copy GitExternal from this repository to CMake/, and use it in your top-level CMakeLists.txt:

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake
  ${CMAKE_SOURCE_DIR}/CMake/common)
include(GitExternal)
include(Common)

Run 'make update' to change the SHA hash in .gitexternals to the newest origin/master version.

Documentation

  • Common does a common CMake setup, including:
    • CommonLibrary common_library function to build a shared library using a standard recipe.
    • CommonApplication common_application function to build an application using a standard recipe.
    • CommonCode generates standard header files for the project (api.h, defines.h, version.h).
    • GNUModules: module target to create a GNUModules module and snapshot targets to create GNU modules.
    • GitTargets branch, cut, tag, erase, retag, tarball targets.
    • Compiler: Default compiler flags, useful default warnings and 'safe' C++11 features.
    • GitInfo sets variables with information about the git source tree.
  • CommonCTest does a common CTest setup, including
    • Automatically adding all .cpp files as tests
    • Coverage Create code coverage report as html, if ENABLE_COVERAGE is set. Buildyard has 'make Coverage' target to enable this in a separate build, since coverage flags may break downstream projects.
    • CppcheckTargets: cppcheck target for static code analysis. Also adds all cppcheck targets to tests.
  • DoxygenRule: doxygen target to build documentation into CMAKE_BINARY_DIR/doc. Optional doxygit target to copy result to ../GITHUB_ORGANIZATION/Project-M.m/. Must be included after all targets.
  • Find scripts for non-CMake projects.
Something went wrong with that request. Please try again.