include_directories(
  ${OGRE_INCLUDE_DIRS}
  ${OGRE_Overlay_INCLUDE_DIRS}
  ${OIS_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIRS}
)

link_directories(
  ${OGRE_LIBRARY_DIRS}
  ${OGRE_Overlay_LIBRARY_DIRS}
  ${OIS_LIBRARY_DIRS}
  ${Boost_LIBRARY_DIRS}
)

add_executable(game main.cpp)
target_link_libraries(game Game ${Boost_LIBRARIES})

add_library(Game Game.cpp)
target_link_libraries(Game OgreApplication Network World PlayerOne)

add_library(Network Network.cpp)
target_link_libraries(Network SocketAddr)

add_library(Object Object.cpp)
target_link_libraries(Object ${OGRE_LIBRARIES})

add_library(Player Player.cpp)
target_link_libraries(Player Object)

add_library(PlayerOne PlayerOne.cpp)
target_link_libraries(PlayerOne Player ${OIS_LIBRARIES})

add_library(World World.cpp)
target_link_libraries(World Object)

add_library(Util Util.cpp)
# target_link_libraries(Util )

add_library(SocketAddr SocketAddr.cpp)
# target_link_libraries(SocketAddr )

add_library(OgreApplication OgreApplication.cpp)
target_link_libraries(OgreApplication ${OGRE_LIBRARIES} ${OIS_LIBRARIES})
