Skip to content

Instantly share code, notes, and snippets.

View brad-anderson's full-sized avatar

Brad Anderson brad-anderson

View GitHub Profile
# vcpkg support added to FindwxWidgets.cmake included with CMake 3.17.2
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindwxWidgets
-------------
Find a wxWidgets (a.k.a., wxWindows) installation.
@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])
#
Timing D startup times of empty program:
void main() { } // -release -O -noboundscheck -inline
------------------------
Total time (ms): 10087.7
Repetitions : 1000
Sample mode : 9.6 (196 ocurrences)
Median time : 9.7305
Avg time : 10.0877