Skip to content

Instantly share code, notes, and snippets.

View gnilk's full-sized avatar

Fredrik Kling gnilk

View GitHub Profile
@gnilk
gnilk / PVoxelPoly.cpp
Created January 18, 2024 15:48
ETS - VoxelPoly
// PVoxelPoly.cpp: implementation of the PVoxelPoly class.
//
// gnilk, 2024-01-18,
// this is dump of the VoxelPolygon part in Enlight the Surreal by Noice from 2000
// note: this won't compile, it is more for completness of the algorithm used
//
//
//////////////////////////////////////////////////////////////////////
#include "PVoxelPoly.h"
@gnilk
gnilk / CMakeListDebPackage.md
Created August 25, 2023 05:30
CMake Linux Deb Package Creation

Create .deb Package from CMake on Linux

This shows how to create a .deb package in Linux using CMake and CPack For full CMakeLists.txt see: https://github.com/gnilk/editor

This works fine for regular terminal/cmd-line tools but not for UI tools (no imagery, etc included)

    #
    # Create a .deb install package..    
@gnilk
gnilk / CMakeMacOSBundle.md
Created August 25, 2023 05:24
CMake macOS Bundle creation

CMake macOS Bundle Hints

Assuming we have some target (${CUR_TARGET}) this is how a bundle can be created. This is taken from the github.com/gnilk/editor project

    set(ICON_FILE ${CMAKE_SOURCE_DIR}/Assets/CMake/GoatEdit.icns)
    set(PLIST_FILE_IN ${CMAKE_SOURCE_DIR}/Assets/CMake/Info.plist.in)

    # for MacOS add - mark as 'MACOSX_BUNDLE' and add the ICON as well
@gnilk
gnilk / Makefile
Last active November 3, 2018 13:36
Amiga memory corruption
#-------------------------------------------------------------------------
#
# Amiga VBCC/VASM makefile - WIP - Gnilk @ 2018
#
#---------------------------------------------------------------------------
# These two variables are used to list all the directories where to find
# include files and library files.
#
# INCDIRS = -I./include -I/usr/X11R6/include