Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake configuration #96

Merged
merged 4 commits into from
Mar 8, 2023
Merged

Add CMake configuration #96

merged 4 commits into from
Mar 8, 2023

Conversation

v3rm0n
Copy link
Contributor

@v3rm0n v3rm0n commented Feb 23, 2023

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

Should be identical to the Makefile, but allows better integration to other projects and IDE's
@v3rm0n
Copy link
Contributor Author

v3rm0n commented Feb 25, 2023

This will fix #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
Copy link
Owner

laamaa commented Mar 8, 2023

Thank you!

@laamaa laamaa merged commit 4f1342e into laamaa:main Mar 8, 2023
@laamaa
Copy link
Owner

laamaa commented Mar 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants