Skip to content

Instantly share code, notes, and snippets.

View tusharpm's full-sized avatar

Tushar Maheshwari tusharpm

  • India
View GitHub Profile
@tusharpm
tusharpm / cythonize.py
Last active October 7, 2017 13:48
Cython raw string literal broken example
from Cython.Compiler import Options
Options.annotate = True
Options.fast_fail = True
from Cython.Build import cythonize
cythonize(["main.pyx"], language='c++')
@tusharpm
tusharpm / ReadVariables.cmake
Created May 28, 2017 09:58
Reading external Makefile variables (only) into CMake
# Simple CMake utility to read variables from MK files
# - Gets contents from given file (name or path)
# - Parses the assignment statements
# - Makes the same assignments in the PARENT_SCOPE
if(POLICY CMP0007)
cmake_policy(SET CMP0007 NEW)
endif()
function(ReadVariables MKFile)