PageRenderTime 38ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/UI.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 64 lines | 58 code | 5 blank | 1 comment | 5 complexity | e7b919ab6fc452ab1b02baea90252dd8 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. if (STANDALONE)
  4. include(FindPkgConfig)
  5. if (LINUX)
  6. set(PKGCONFIG_PACKAGES
  7. atk
  8. cairo
  9. gdk-2.0
  10. gdk-pixbuf-2.0
  11. glib-2.0
  12. gmodule-2.0
  13. gtk+-2.0
  14. gthread-2.0
  15. libpng
  16. pango
  17. pangoft2
  18. pangox
  19. pangoxft
  20. sdl
  21. )
  22. endif (LINUX)
  23. foreach(pkg ${PKGCONFIG_PACKAGES})
  24. pkg_check_modules(${pkg} REQUIRED ${pkg})
  25. include_directories(${${pkg}_INCLUDE_DIRS})
  26. link_directories(${${pkg}_LIBRARY_DIRS})
  27. list(APPEND UI_LIBRARIES ${${pkg}_LIBRARIES})
  28. add_definitions(${${pkg}_CFLAGS_OTHERS})
  29. endforeach(pkg)
  30. else (STANDALONE)
  31. use_prebuilt_binary(gtk-atk-pango-glib)
  32. if (LINUX)
  33. set(UI_LIBRARIES
  34. atk-1.0
  35. gdk-x11-2.0
  36. gdk_pixbuf-2.0
  37. Xinerama
  38. glib-2.0
  39. gmodule-2.0
  40. gobject-2.0
  41. gthread-2.0
  42. gtk-x11-2.0
  43. pango-1.0
  44. pangoft2-1.0
  45. pangox-1.0
  46. pangoxft-1.0
  47. )
  48. endif (LINUX)
  49. include_directories (
  50. ${LIBS_PREBUILT_DIR}/include
  51. ${LIBS_PREBUILT_DIR}/include
  52. )
  53. foreach(include ${${LL_ARCH}_INCLUDES})
  54. include_directories(${LIBS_PREBUILT_DIR}/include/${include})
  55. endforeach(include)
  56. endif (STANDALONE)
  57. if (LINUX)
  58. add_definitions(-DLL_GTK=1 -DLL_X11=1)
  59. endif (LINUX)