This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(ExternalProject) | |
set(GLFW_DIR "${CMAKE_CURRENT_SOURCE_DIR}") | |
if(NOT EXISTS ${GLFW_DIR}) | |
file(MAKE_DIRECTORY ${GLFW_DIR}) | |
endif() | |
if(NOT EXISTS ${GLFW_DIR}/include) | |
file(MAKE_DIRECTORY ${GLFW_DIR}/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "Cmake commands to clang complete generator usage:" | |
echo "$0 input/directory [output/directory]" | |
} | |
generate_file() { | |
cat $1/compile_commands.json | | |
sed -r '/command/!d | |
s/^ *"command": "// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from hashlib import md5 | |
from markdown import markdown | |
def gfm(value): | |
# Extract pre blocks. | |
extractions = {} | |
def pre_extraction_callback(matchobj): | |
digest = md5(matchobj.group(0).encode('utf-8')).hexdigest() | |
extractions[digest] = matchobj.group(0) |