PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/indra/llrender/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 102 lines | 88 code | 11 blank | 3 comment | 2 complexity | 8789ac7e2ab2db8761fdbdffcbb805a5 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llrender)
  3. include(00-Common)
  4. include(FindOpenGL)
  5. include(FreeType)
  6. include(LLCommon)
  7. include(LLImage)
  8. include(LLMath)
  9. include(LLRender)
  10. include(LLVFS)
  11. include(LLWindow)
  12. include(LLXML)
  13. include(LLVFS)
  14. include_directories(
  15. ${FREETYPE_INCLUDE_DIRS}
  16. ${LLCOMMON_INCLUDE_DIRS}
  17. ${LLIMAGE_INCLUDE_DIRS}
  18. ${LLMATH_INCLUDE_DIRS}
  19. ${LLRENDER_INCLUDE_DIRS}
  20. ${LLVFS_INCLUDE_DIRS}
  21. ${LLWINDOW_INCLUDE_DIRS}
  22. ${LLXML_INCLUDE_DIRS}
  23. ${LLVFS_INCLUDE_DIRS}
  24. )
  25. set(llrender_SOURCE_FILES
  26. llcubemap.cpp
  27. llfontfreetype.cpp
  28. llfontgl.cpp
  29. llfontbitmapcache.cpp
  30. llfontregistry.cpp
  31. llgldbg.cpp
  32. llglslshader.cpp
  33. llimagegl.cpp
  34. llpostprocess.cpp
  35. llrendersphere.cpp
  36. llshadermgr.cpp
  37. lltexture.cpp
  38. llvertexbuffer.cpp
  39. )
  40. set(llrender_HEADER_FILES
  41. CMakeLists.txt
  42. llcubemap.h
  43. llfontgl.h
  44. llfontfreetype.h
  45. llfontbitmapcache.h
  46. llfontregistry.h
  47. llgl.h
  48. llgldbg.h
  49. llglheaders.h
  50. llglslshader.h
  51. llglstates.h
  52. llgltypes.h
  53. llimagegl.h
  54. llpostprocess.h
  55. llrender.h
  56. llrendersphere.h
  57. llshadermgr.h
  58. lltexture.h
  59. llvertexbuffer.h
  60. )
  61. set_source_files_properties(${llrender_HEADER_FILES}
  62. PROPERTIES HEADER_FILE_ONLY TRUE)
  63. list(APPEND llrender_SOURCE_FILES ${llrender_HEADER_FILES})
  64. if (SERVER AND NOT WINDOWS AND NOT DARWIN)
  65. copy_server_sources(
  66. llgl
  67. llrender
  68. )
  69. set_source_files_properties(
  70. ${server_SOURCE_FILES}
  71. PROPERTIES
  72. COMPILE_FLAGS "-DLL_MESA=1 -DLL_MESA_HEADLESS=1"
  73. )
  74. add_library (llrenderheadless
  75. ${llrender_SOURCE_FILES}
  76. ${server_SOURCE_FILES}
  77. )
  78. else (SERVER AND NOT WINDOWS AND NOT DARWIN)
  79. list(APPEND llrender_SOURCE_FILES
  80. llgl.cpp
  81. llrender.cpp
  82. llrendertarget.cpp
  83. )
  84. endif (SERVER AND NOT WINDOWS AND NOT DARWIN)
  85. add_library (llrender ${llrender_SOURCE_FILES})
  86. # Libraries on which this library depends, needed for Linux builds
  87. # Sort by high-level to low-level
  88. target_link_libraries(llrender
  89. llimage
  90. ${FREETYPE_LIBRARIES}
  91. ${OPENGL_LIBRARIES})