Skip to content

Instantly share code, notes, and snippets.

@trmwzm
trmwzm / cmake install with configuration type
Created September 18, 2022 16:49 — forked from bjoernsauer/cmake install with configuration type
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
@trmwzm
trmwzm / doom_wsl2.md
Created November 11, 2022 20:20 — forked from GiulioCentorame/doom_wsl2.md
Doom Emacs on WSL2
@trmwzm
trmwzm / add_wsl_exclusions.ps1
Created November 12, 2022 05:02 — forked from ian-p-cooke/add_wsl_exclusions.ps1
powershell script to add WSL exclusions
$win_user = "ipc"
$linux_user = "ipc"
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path