-
Notifications
You must be signed in to change notification settings - Fork 48
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 vcpkg manifest #57
base: master
Are you sure you want to change the base?
Conversation
compiling:
to CMakeList.txt for VS22 compilation in the pr your vcpkg manifest is a good addition, I just like to ask if it's not preferred to just have the line |
I agree. I'll remove my changes to cmakelist and refer to your pr there |
This works but the log console of Nuked-SC55 (if anyone needs it) no longer starts. The problem is that if set to
(unless you set the linker flag Also there are some warnings:
|
When I get home this evening, I'll remove the cmake change. That probably needs to be made in a separate PR by setting |
Allows for easy installation of SDL2 using MSVC
Ok, cmake change removed. |
Why are you using the vcpkg-ce-catalog? SDL2 is in the main vcpkg repo. |
Hi, this is the default configuration when invoking |
Adds a vcpkg manifest to easily install SDL2 when compiling in a MSVC environment.
To build for MSVC, open the "x64 Native Tools Command Prompt for VS 2022" and use the following:
You can then copy
.\back.data
,.\Release\nuked-sc55.exe
.\Release\SDL2.dll
to a folder with the SC55 ROM's.This assumes you are using a newish version of VS 2022 with integrated vcpkg. You can also use it with the standalone release of vcpkg as well.
I had to addWIN32
toadd_executable
in CMakeLists.txt so it would link againstWinMain
. If there are any cmake experts out there, please let me know if this needs to be changed. I tested it under MSYS2 as well, and it compiled fine.