PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/src/shared/CMakeLists.txt

https://bitbucket.org/oneb1t/crocoduckcore/
CMake | 55 lines | 34 code | 7 blank | 14 comment | 0 complexity | 0fa6714349a8c69265da50ed2e721c9a MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. # Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
  2. #
  3. # Copyright (C) 2009-2010 Oregon <http://www.oregoncore.org/>
  4. #
  5. # This file is free software; as a special exception the author gives
  6. # unlimited permission to copy and/or distribute it, with or without
  7. # modifications, as long as this notice is preserved.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  11. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. file(GLOB_RECURSE sources_vmap vmap/*.cpp vmap/*.h)
  13. file(GLOB_RECURSE sources_auth Auth/*.cpp Auth/*.h)
  14. file(GLOB_RECURSE sources_config Config/*.cpp Config/*.h)
  15. file(GLOB_RECURSE sources_database Database/*.cpp Database/*.h)
  16. file(GLOB sources_localdir *.cpp *.h)
  17. #
  18. # Build shared sourcelist
  19. #
  20. SET(shared_STAT_SRCS
  21. ${shared_STAT_SRCS}
  22. ${sources_vmap}
  23. ${sources_auth}
  24. ${sources_config}
  25. ${sources_database}
  26. ${sources_localdir}
  27. )
  28. include_directories(
  29. ${CMAKE_BINARY_DIR}
  30. ${CMAKE_SOURCE_DIR}/dep/include
  31. ${CMAKE_SOURCE_DIR}/dep/include/g3dlite
  32. ${CMAKE_SOURCE_DIR}/dep/include/sockets
  33. ${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour
  34. ${CMAKE_SOURCE_DIR}/dep/recastnavigation/Recast
  35. ${CMAKE_SOURCE_DIR}/src/framework
  36. ${CMAKE_SOURCE_DIR}/src
  37. ${CMAKE_CURRENT_SOURCE_DIR}
  38. ${CMAKE_CURRENT_SOURCE_DIR}/Auth
  39. ${CMAKE_CURRENT_SOURCE_DIR}/Config
  40. ${CMAKE_CURRENT_SOURCE_DIR}/Database
  41. ${ACE_INCLUDE_DIR}
  42. ${MYSQL_INCLUDE_DIR}
  43. ${OPENSSL_INCLUDE_DIR}
  44. )
  45. add_library(shared STATIC ${shared_STAT_SRCS})
  46. target_link_libraries(shared
  47. ${ACE_LIBRARY}
  48. )