Now depends on SFML2 network lib.

master
Quentin Bazin 2019-01-09 18:47:28 +01:00
parent 2b236bc42f
commit a17d361297
4 changed files with 17 additions and 3 deletions

View File

@ -127,6 +127,16 @@ include_directories(${SDL2_INCLUDE_DIRS}
${SDL2MIXER_INCLUDE_DIRS}
${SDL2TTF_INCLUDE_DIRS})
#------------------------------------------------------------------------------
# - SFML network
#------------------------------------------------------------------------------
find_package(SFML COMPONENTS network)
if(NOT SFML_FOUND)
message(FATAL_ERROR "SFML is needed to build the project. Please install it correctly.")
endif()
include_directories(${SFML_INCLUDE_DIRS})
#------------------------------------------------------------------------------
# Link options
#------------------------------------------------------------------------------
@ -138,5 +148,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
${SDL2_LIBRARIES}
${SDL2IMAGE_LIBRARIES}
${SDL2MIXER_LIBRARIES}
${SDL2TTF_LIBRARIES})
${SDL2TTF_LIBRARIES}
sfml-network)

4
Notes
View File

@ -1,5 +1,9 @@
Notes
# Network
## Protocol
# Lua API integration
## HUD

View File

@ -21,6 +21,7 @@
- Dependencies:
- [CMake](http://www.cmake.org/download/)
- [GameKit](http://github.com/Quent42340/GameKit)
- [SFML](https://www.sfml-dev.org/) (only used for network)
- [Lua](http://www.lua.org)
- _Linux users: Check your distribution repositories for packages._
- Run `mkdir build && cd build` at the root of the game folder

View File

@ -9,8 +9,6 @@ mod = LuaMod.new("default")
dofile("mods/bit.lua") -- FIXME
dofile("mods/blocks.lua")
dofile("mods/workbench.lua")
dofile("mods/furnace.lua")
dofile("mods/items.lua")
dofile("mods/recipes.lua")