# otclient options
OPTION(FORBIDDEN_FUNCTIONS "Enable forbidden lua functions" ON)

IF(FORBIDDEN_FUNCTIONS)
    ADD_DEFINITIONS(-DFORBIDDEN_FUNCTIONS)
    MESSAGE(STATUS "Lua forbidden functions: ON")
ELSE(FORBIDDEN_FUNCTIONS)
    MESSAGE(STATUS "Lua forbidden functions: OFF")
ENDIF(FORBIDDEN_FUNCTIONS)

SET(otclient_SOURCES ${otclient_SOURCES}
    # otclient
    ${CMAKE_CURRENT_LIST_DIR}/otclient.cpp
    ${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp

    # otclient luascript
    ${CMAKE_CURRENT_LIST_DIR}/luascript/luavaluecasts.cpp

    # otclient core
    ${CMAKE_CURRENT_LIST_DIR}/core/game.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/map.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/thingstype.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/spritemanager.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/item.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/tile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/thing.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/creature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/effect.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/missile.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/localplayer.cpp
    ${CMAKE_CURRENT_LIST_DIR}/core/outfit.cpp

    # otclient ui
    ${CMAKE_CURRENT_LIST_DIR}/ui/uiitem.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ui/uicreature.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ui/uimap.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ui/uigame.cpp

    # otclient net
    ${CMAKE_CURRENT_LIST_DIR}/net/protocollogin.cpp
    ${CMAKE_CURRENT_LIST_DIR}/net/protocolgame.cpp
    ${CMAKE_CURRENT_LIST_DIR}/net/protocolgamesend.cpp
    ${CMAKE_CURRENT_LIST_DIR}/net/protocolgameparse.cpp
)
