PageRenderTime 29ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llplugin/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 85 lines | 67 code | 14 blank | 4 comment | 3 complexity | 0f195b315b86536d92f598b20373e42b MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llplugin)
  3. include(00-Common)
  4. include(CURL)
  5. include(LLCommon)
  6. include(LLImage)
  7. include(LLMath)
  8. include(LLMessage)
  9. include(LLRender)
  10. include(LLXML)
  11. include(LLWindow)
  12. include_directories(
  13. ${LLCOMMON_INCLUDE_DIRS}
  14. ${LLIMAGE_INCLUDE_DIRS}
  15. ${LLMATH_INCLUDE_DIRS}
  16. ${LLMESSAGE_INCLUDE_DIRS}
  17. ${LLRENDER_INCLUDE_DIRS}
  18. ${LLXML_INCLUDE_DIRS}
  19. ${LLWINDOW_INCLUDE_DIRS}
  20. ${LLQTWEBKIT_INCLUDE_DIR}
  21. )
  22. set(llplugin_SOURCE_FILES
  23. llpluginclassmedia.cpp
  24. llplugincookiestore.cpp
  25. llplugininstance.cpp
  26. llpluginmessage.cpp
  27. llpluginmessagepipe.cpp
  28. llpluginprocesschild.cpp
  29. llpluginprocessparent.cpp
  30. llpluginsharedmemory.cpp
  31. )
  32. set(llplugin_HEADER_FILES
  33. CMakeLists.txt
  34. llpluginclassmedia.h
  35. llpluginclassmediaowner.h
  36. llplugincookiestore.h
  37. llplugininstance.h
  38. llpluginmessage.h
  39. llpluginmessageclasses.h
  40. llpluginmessagepipe.h
  41. llpluginprocesschild.h
  42. llpluginprocessparent.h
  43. llpluginsharedmemory.h
  44. )
  45. set_source_files_properties(${llplugin_HEADER_FILES}
  46. PROPERTIES HEADER_FILE_ONLY TRUE)
  47. if(NOT WORD_SIZE EQUAL 32)
  48. if(WINDOWS)
  49. add_definitions(/FIXED:NO)
  50. else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
  51. add_definitions(-fPIC)
  52. endif(WINDOWS)
  53. endif(NOT WORD_SIZE EQUAL 32)
  54. list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES})
  55. add_library (llplugin ${llplugin_SOURCE_FILES})
  56. add_subdirectory(slplugin)
  57. # Add tests
  58. if (LL_TESTS)
  59. include(LLAddBuildTest)
  60. # UNIT TESTS
  61. SET(llplugin_TEST_SOURCE_FILES
  62. llplugincookiestore.cpp
  63. )
  64. # llplugincookiestore has a dependency on curl, so we need to link the curl library into the test.
  65. set_source_files_properties(
  66. llplugincookiestore.cpp
  67. PROPERTIES
  68. LL_TEST_ADDITIONAL_LIBRARIES "${CURL_LIBRARIES}"
  69. )
  70. LL_ADD_PROJECT_UNIT_TESTS(llplugin "${llplugin_TEST_SOURCE_FILES}")
  71. endif (LL_TESTS)