Skip to content

Instantly share code, notes, and snippets.

View brad-anderson's full-sized avatar

Brad Anderson brad-anderson

View GitHub Profile
@brad-anderson
brad-anderson / PrecompiledHeader.cmake
Last active May 7, 2016 23:14 — forked from larsch/PrecompiledHeader.cmake
cmake module for setting up precompiled headers (MSVC & GCC)
# Function for setting up precompiled headers. Usage:
#
# add_library/executable(target
# pchheader.c pchheader.cpp pchheader.h)
#
# add_precompiled_header(target pchheader.h
# [FORCEINCLUDE]
# [SOURCE_C pchheader.c]
# [SOURCE_CXX pchheader.cpp])
#