PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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