Skip to content

Instantly share code, notes, and snippets.

View bjoernsauer's full-sized avatar

Björn Sauer bjoernsauer

  • PHOENIX CONTACT Deutschland GmbH
  • Germany, Böblingen
View GitHub Profile
@bjoernsauer
bjoernsauer / conan_linux_to_axcf2152
Last active September 4, 2019 14:17
Conan (https://conan.io/) Profile for the AXC F 2152 controller
# Adjust this path to the SDK install location
toolchain_path=/opt/pxc/axcf2152_2019.6
[settings]
# We are building in Ubuntu Linux
os_build=Linux
arch_build=x86_64
# We are cross-building to ARM
os=Linux
arch=armv7hf
@bjoernsauer
bjoernsauer / cmake install with configuration type
Last active September 18, 2022 16:49
CMake install with Configuration Directory CMake. Shows how to use the install() command to install into a directory that includes the current configuration type as subfolder. For Example lib/MyLibrary/Release or lib/MyLibrary/Debug
project(cmake-install)
cmake_minimum_required(VERSION 3.12)
add_library(MyLibrary main.cpp)
target_include_directories(MyLibrary
PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
PUBLIC
@bjoernsauer
bjoernsauer / guix-install.sh
Last active April 8, 2021 19:22
Script to install GNU Guix Functional package management for GNU on PLCnext based PLC from Phoenix Contact. Minimal needed firmware is 2019.0
#!/bin/sh
# Script to install GNU Guix --- Functional package management for GNU
# on PLCnext based PLC from Phoenix Contact. (Minimal needed firmware 2019.0)
# The script is derived from the guix-install.sh script of GNU Guix
# which can be found at
# <https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh>
#
# Copyright 2019 PHOENIX CONTACT GmbH & Co KG
# This script is licensed under the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at