Stephane-D / SGDK

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

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

Closed iratahack closed 9 months ago

iratahack commented 9 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.