Skip to content

Instantly share code, notes, and snippets.

View mologie's full-sized avatar

Oliver Kuckertz mologie

View GitHub Profile
# CMake Toolchain file for cross compilation to Alpine 3.7 running on a Raspberry Pi via LLVM.
# Dec. 2017, Oliver Kuckertz <oliver.kuckertz@mologie.de>
# https://mologie.github.io/blog/programming/2017/12/25/cross-compiling-cpp-with-cmake-llvm.html
# License: MIT
# Where did you create the Alpine sysroot? Oliver has his cross-toolchains in ~/Toolchains.
SET(CMAKE_SYSROOT "$ENV{HOME}/Toolchains/sysroots/alpine-armhf")
# Where is LLVM/clang installed on your host? These are defaults for common platforms:
IF(APPLE)

Keybase proof

I hereby claim:

  • I am mologie on github.
  • I am mologie (https://keybase.io/mologie) on keybase.
  • I have a public key whose fingerprint is 5F95 21DB 71DE 8EF6 C881 F419 7EB2 F3E5 D1CF 39D1

To claim this, I am signing this object:

@mologie
mologie / teeworlds.sh
Last active December 25, 2015 07:39
A (so far nicely working) attempt to throw Teeworlds into OS X's native sandbox. Rename teeworld's executable to teeworlds-orig and save this script in its original location, then make it executable.
#!/bin/sh
# Teeworlds sandboxing script
# Oliver Kuckertz <oliver.kucertz@mologie.de>, 2013-10-11, public domain
abspath() {
echo "$(cd $1; pwd)"
}
absdirname() {
echo "$(abspath $(dirname $1))"
}
@mologie
mologie / FindWt.cmake
Last active January 10, 2023 09:48
Replacement for Wt's FindWt.cmake
# FindWt.cmake
# Copyright 2013 Oliver Kuckertz <oliver.kuckertz@mologie.de>
# Licensed under the MIT license:
# http://opensource.org/licenses/MIT
#
# Please note that this script is NOT interchangeable with Wt's original FindWt.cmake.
#
# Usage:
# FIND_PACKAGE(Wt [REQUIRED] [COMPONENTS ...])
#