Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.74k stars 187 forks source link

Created CMakeLists file to build the SGDK libraries and host based binary utilities. #313

Closed iratahack closed 7 months ago

iratahack commented 7 months ago

Using CMake to build the SGDK can simplify the build environment and dependancy handling.

To build the libraries, follow the instructions below...

Ensure the PREFIX env var is set for the GCC tools in use and set SGDK envvar to point to the SGDK installation.

export SGDK=~/SGDK export PREFIX=m68k-neogeo-elf-

cmake -S $SGDK -B $SGDK/build -DCMAKE_BUILD_TYPE=Release cmake --build $SGDK/build cmake -S $SGDK -B $SGDK/build -DCMAKE_BUILD_TYPE=Debug cmake --build $SGDK/build

This build file also includes building of the following native utilities.