-
Notifications
You must be signed in to change notification settings - Fork 187
Build ‐ Windows with MSVS ‐ Additional Notes
- Visual Studio - The Community Edition is free.
- CMake, at least 3.10.
- SDL2 VC development library.
- A flavor of git tool.
Clone both daid/EmptyEpsilon
and daid/SeriousProton
.
Extract the SDL2 archive somewhere.
Install Visual Studio. When prompted, select and install Desktop development with C++
If CMAKE could not find any instance of Visual Studio
If you already have Visual Studio installed, open Visual Studio and go to: Tools
> Get Tools and Features
> Workloads
tab > Desktop & Mobile
section > Select Desktop development with C++
. In the bottom right, click Modify
, and Visual Studio will begin installing.
Create a sdl2-config.cmake
at the root of where you extracted the SDL2 archive. Add the following contents:
# Tweak these to fit your need.
set(_SDL2_version 2.0.16)
# Assumes the sdl2-config.cmake is located at the root
# of where the development libraries were extracted:
# - <root>/
# | - sdl2-config.cmake
# | - SDL2-2.0.16/
# | - (include, docs, lib...)
#
set(_SDL2_prefix "${CMAKE_CURRENT_LIST_DIR}/SDL2-${_SDL2_version}")
set(flavor x86)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(flavor x64)
endif()
add_library(SDL2::SDL2main STATIC IMPORTED)
set_target_properties(SDL2::SDL2main PROPERTIES
IMPORTED_LOCATION "${_SDL2_prefix}/lib/${flavor}/SDL2main.lib"
)
add_library(SDL2::SDL2 SHARED IMPORTED)
set_target_properties(SDL2::SDL2 PROPERTIES
IMPORTED_LOCATION "${_SDL2_prefix}/lib/${flavor}/SDL2.dll"
IMPORTED_IMPLIB "${_SDL2_prefix}/lib/${flavor}/SDL2.lib"
INTERFACE_INCLUDE_DIRECTORIES "${_SDL2_prefix}/include"
)
target_link_libraries(SDL2::SDL2 INTERFACE SDL2::SDL2main)
- Run the CMake GUI (
cmake-gui
) - Click
Browse source...
and browse to your cloneddaid/EmptyEpsilon
- click
Browse build...
and select an appropriate location. - Click
Add Entry...
:- Name:
SERIOUS_PROTON_DIR
- Type:
PATH
- Value: Browse to your cloned
daid/SeriousProton
- Name:
- Click
Add Entry...
(again):- Name:
SDL2_DIR
- Type:
PATH
- Value: Browse to where you created the
sdl2-config.cmake
file.
- Name:
- Click
Configure
- Select your appropriate project versions and compiler arch. The defaults are a good choice.
- If you get an error similar to
CMake Error at CMakeLists.txt ... could not find any instance of Visual Studio.
, ensure that you have the correct version of Visual Studio selected, and you installed Visual Studio'sDesktop development with C++
. See the section above for more details.
- Click
Generate
- Open Visual Studio via one of the following methods:
- Click
Open Project
- Browse to the build directory you chose and open the
EmptyEpsilon.sln
.
- Click
- Close CMake GUI
In the Solution Explorer
(right), right-click EmptyEpsilon
and set it as the "Start Up Project"/
As simple as building the project under Visual Studio, using build solution or right clicking the project.
Updates should get auto-picked up!
- Home
- Stations
- Main Screen/Captain
- 5-6 Player Crews
- 3-4 Player Crews
- 1 Player Crew
- Game Master
- Additional Stations and Views
- Setting up a Game
- Lore
- Expanding the Game
- Additional Features
- Building from Source