Commit a3806eb4 authored by louiz’'s avatar louiz’

Remove the build dependencies to mysql and sfgui, because we will replace them

parent 78561ded
......@@ -50,14 +50,8 @@ find_package(YamlCpp REQUIRED)
if(BUILD_CLIENT)
find_package(SFML 2 REQUIRED system window graphics audio)
find_package(SFGUI REQUIRED)
endif()
if(BUILD_SERVER)
find_package(mysql REQUIRED)
endif(BUILD_SERVER)
##########################
# Includes and Linkage
##########################
......@@ -206,8 +200,6 @@ target_link_libraries(clientmod
if(BUILD_CLIENT)
file(GLOB source_gui
src/gui/*.[hc]pp
src/gui/menu/*.[hc]pp
src/gui/popup/*.[hc]pp
src/gui/camera/*.[hc]pp
src/gui/screen/*.[hc]pp
src/gui/hud/*.[hc]pp
......@@ -223,7 +215,6 @@ if(BUILD_CLIENT)
utils
clientmod
${SFML_LIBRARIES}
${SFGUI_LIBRARY}
${Boost_LIBRARIES}
)
endif()
......@@ -300,7 +291,6 @@ target_link_libraries(server
logging
config
game
database
${Boost_LIBRARIES}
)
......@@ -363,7 +353,6 @@ target_link_libraries(menu_client
game
)
#
## Server
#
......@@ -373,32 +362,11 @@ if(BUILD_SERVER)
target_link_libraries(game_server
logging
config
database
world
${Boost_LIBRARIES}
)
endif()
#
## Database
#
if(BUILD_SERVER)
file(GLOB source_database
src/database/*.[ch]pp
)
add_library(database STATIC ${source_database})
set_target_properties(database PROPERTIES COMPILE_FLAGS ${MYSQL_CXXFLAGS})
target_link_libraries(database
logging
config
${CRYPTO++_LIBRARIES}
${MYSQL_LIBRARIES}
)
endif()
####################
# Tests
####################
......
......@@ -41,14 +41,6 @@ Website: http://www.sfml-dev.org/
Sources: https://github.com/LaurentGomila/SFML
-----------------------------------------------
------------------ SFGUI ----------------------
License: zlib
Website: http://sfgui.sfml-dev.de/
Sources: http://sfgui.sfml-dev.de/download
-----------------------------------------------
------------------ Base64 ---------------------
License: zlib
Website: http://www.adp-gmbh.ch/cpp/common/base64.html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment