laamaa / m8c

Cross-platform M8 tracker headless client
Other
380 stars 81 forks source link

Add CMake configuration #96

Closed v3rm0n closed 1 year ago

v3rm0n commented 1 year ago

Should be identical to the Makefile (will basically replace the Makefile if needed), but allows better integration to other projects and IDE's

v3rm0n commented 1 year ago

This will fix https://github.com/laamaa/m8c/issues/90 as well. Basically the process would be:

INSTALL_PREFIX=/some/absolute/path/where/you/want/your/app/bundle
mkdir build && cd build
cmake ..
cmake --build .
cmake --install . --prefix=$INSTALL_PREFIX
# MacOS specific part
codesign --deep --force --verify --verbose --timestamp --sign - "$INSTALL_PREFIX/m8c.app" "$INSTALL_PREFIX/m8c.app/Contents/Frameworks/libSDL2-2.0.0.dylib" "$INSTALL_PREFIX/m8c.app/Contents/Frameworks/libserialport.0.dylib"

This would replace all the custom MacOS script in the Github workflow (except the zipping part). Might work for all platforms, but I don't have access to Windows.

laamaa commented 1 year ago

Thank you!

laamaa commented 1 year ago

I'll try to mess with the GH actions config if we could get a nice automated MacOS build...