Skip to content

Instantly share code, notes, and snippets.

View dlrdave's full-sized avatar

David Cole dlrdave

View GitHub Profile
@dlrdave
dlrdave / varprops.cmake
Last active April 15, 2022 15:27
Demonstrate get_property usage for VARIABLE and CACHE properties
# This section of the documentation lists the properties available on
# CMake cache entries:
#
# http://cmake.org/cmake/help/v2.8.12/cmake.html#section_PropertiesonCacheEntries
#
#
# This code demonstrates retrieving the property values from a variable or
# cache entry.
#
@dlrdave
dlrdave / CMakeLists.txt
Last active December 15, 2015 00:28
EchoRequirements: A minimal project CMakeLists.txt file whose sole purpose is to spit out VTK and ITK compiler definitions, include directories and libraries to link to.
#
# EchoRequirements
#
# A minimal project CMakeLists.txt file whose sole purpose is to spit out
# VTK and ITK compiler definitions, include directories and libraries to
# link to.
#
# This is for when you want to use VTK and ITK from a non-CMake-based
# project, and need to know all the stuff that CMake does for you but don't
# want to CMake-ify your project just to get it done today. Use the output