No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # CMAKE_CURRENT_LIST_DIR cmake 2.6 compatibility
  2. if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)
  3. get_filename_component(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
  4. endif(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 6)
  5. # otclient options
  6. add_definitions(-DOTCLIENT)
  7. option(BOT_PROTECTION "Enable bot protection" ON)
  8. option(CIPSOFT_RSA "Use cipsoft RSA to login into original tibia" OFF)
  9. if(CIPSOFT_RSA)
  10. add_definitions(-DCIPSOFT_RSA -DOSTYPE=2)
  11. message(STATUS "RSA: CipSoft")
  12. else()
  13. message(STATUS "RSA: OTServ")
  14. endif()
  15. if(BOT_PROTECTION)
  16. add_definitions(-DBOT_PROTECTION)
  17. message(STATUS "Bot protection: ON")
  18. else(BOT_PROTECTION)
  19. message(STATUS "Bot protection: OFF")
  20. endif(BOT_PROTECTION)
  21. set(otclient_SOURCES ${otclient_SOURCES}
  22. # otclient
  23. ${CMAKE_CURRENT_LIST_DIR}/const.h
  24. ${CMAKE_CURRENT_LIST_DIR}/global.h
  25. ${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
  26. ${CMAKE_CURRENT_LIST_DIR}/otclient.cpp
  27. ${CMAKE_CURRENT_LIST_DIR}/otclient.h
  28. # core
  29. ${CMAKE_CURRENT_LIST_DIR}/animatedtext.cpp
  30. ${CMAKE_CURRENT_LIST_DIR}/animatedtext.h
  31. ${CMAKE_CURRENT_LIST_DIR}/container.cpp
  32. ${CMAKE_CURRENT_LIST_DIR}/container.h
  33. ${CMAKE_CURRENT_LIST_DIR}/creature.cpp
  34. ${CMAKE_CURRENT_LIST_DIR}/creature.h
  35. ${CMAKE_CURRENT_LIST_DIR}/declarations.h
  36. ${CMAKE_CURRENT_LIST_DIR}/effect.cpp
  37. ${CMAKE_CURRENT_LIST_DIR}/effect.h
  38. ${CMAKE_CURRENT_LIST_DIR}/game.cpp
  39. ${CMAKE_CURRENT_LIST_DIR}/game.h
  40. ${CMAKE_CURRENT_LIST_DIR}/shadermanager.cpp
  41. ${CMAKE_CURRENT_LIST_DIR}/shadermanager.h
  42. ${CMAKE_CURRENT_LIST_DIR}/item.cpp
  43. ${CMAKE_CURRENT_LIST_DIR}/item.h
  44. ${CMAKE_CURRENT_LIST_DIR}/localplayer.cpp
  45. ${CMAKE_CURRENT_LIST_DIR}/localplayer.h
  46. ${CMAKE_CURRENT_LIST_DIR}/map.cpp
  47. ${CMAKE_CURRENT_LIST_DIR}/map.h
  48. ${CMAKE_CURRENT_LIST_DIR}/mapview.cpp
  49. ${CMAKE_CURRENT_LIST_DIR}/mapview.h
  50. ${CMAKE_CURRENT_LIST_DIR}/missile.cpp
  51. ${CMAKE_CURRENT_LIST_DIR}/missile.h
  52. ${CMAKE_CURRENT_LIST_DIR}/outfit.cpp
  53. ${CMAKE_CURRENT_LIST_DIR}/outfit.h
  54. ${CMAKE_CURRENT_LIST_DIR}/player.cpp
  55. ${CMAKE_CURRENT_LIST_DIR}/player.h
  56. ${CMAKE_CURRENT_LIST_DIR}/spritemanager.cpp
  57. ${CMAKE_CURRENT_LIST_DIR}/spritemanager.h
  58. ${CMAKE_CURRENT_LIST_DIR}/statictext.cpp
  59. ${CMAKE_CURRENT_LIST_DIR}/statictext.h
  60. ${CMAKE_CURRENT_LIST_DIR}/thing.cpp
  61. ${CMAKE_CURRENT_LIST_DIR}/thing.h
  62. ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.cpp
  63. ${CMAKE_CURRENT_LIST_DIR}/thingtypemanager.h
  64. ${CMAKE_CURRENT_LIST_DIR}/thingtype.cpp
  65. ${CMAKE_CURRENT_LIST_DIR}/thingtype.h
  66. ${CMAKE_CURRENT_LIST_DIR}/itemtype.cpp
  67. ${CMAKE_CURRENT_LIST_DIR}/itemtype.h
  68. ${CMAKE_CURRENT_LIST_DIR}/tile.cpp
  69. ${CMAKE_CURRENT_LIST_DIR}/tile.h
  70. ${CMAKE_CURRENT_LIST_DIR}/houses.cpp
  71. ${CMAKE_CURRENT_LIST_DIR}/houses.h
  72. ${CMAKE_CURRENT_LIST_DIR}/towns.cpp
  73. ${CMAKE_CURRENT_LIST_DIR}/towns.h
  74. ${CMAKE_CURRENT_LIST_DIR}/creatures.cpp
  75. ${CMAKE_CURRENT_LIST_DIR}/creatures.h
  76. # lua
  77. ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.cpp
  78. ${CMAKE_CURRENT_LIST_DIR}/luavaluecasts.h
  79. # net
  80. ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.cpp
  81. ${CMAKE_CURRENT_LIST_DIR}/protocolcodes.h
  82. ${CMAKE_CURRENT_LIST_DIR}/protocolgame.cpp
  83. ${CMAKE_CURRENT_LIST_DIR}/protocolgame.h
  84. ${CMAKE_CURRENT_LIST_DIR}/protocolgameparse.cpp
  85. ${CMAKE_CURRENT_LIST_DIR}/protocolgamesend.cpp
  86. # ui
  87. ${CMAKE_CURRENT_LIST_DIR}/uicreature.cpp
  88. ${CMAKE_CURRENT_LIST_DIR}/uicreature.h
  89. ${CMAKE_CURRENT_LIST_DIR}/uiitem.cpp
  90. ${CMAKE_CURRENT_LIST_DIR}/uiitem.h
  91. ${CMAKE_CURRENT_LIST_DIR}/uimap.cpp
  92. ${CMAKE_CURRENT_LIST_DIR}/uimap.h
  93. ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.cpp
  94. ${CMAKE_CURRENT_LIST_DIR}/uiprogressrect.h
  95. # util
  96. ${CMAKE_CURRENT_LIST_DIR}/position.h
  97. )