Now depends on SFML2 network lib.
parent
2b236bc42f
commit
a17d361297
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue