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

/indra/viewer_components/updater/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 82 lines | 59 code | 14 blank | 9 comment | 2 complexity | fef3f29448a3fd1e3f40a8ae7337385b MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(updater_service)
  3. include(00-Common)
  4. if(LL_TESTS)
  5. include(LLAddBuildTest)
  6. endif(LL_TESTS)
  7. include(CMakeCopyIfDifferent)
  8. include(CURL)
  9. include(LLCommon)
  10. include(LLMessage)
  11. include(LLPlugin)
  12. include(LLVFS)
  13. include_directories(
  14. ${LLCOMMON_INCLUDE_DIRS}
  15. ${LLMESSAGE_INCLUDE_DIRS}
  16. ${LLPLUGIN_INCLUDE_DIRS}
  17. ${LLVFS_INCLUDE_DIRS}
  18. ${CURL_INCLUDE_DIRS}
  19. )
  20. set(updater_service_SOURCE_FILES
  21. llupdaterservice.cpp
  22. llupdatechecker.cpp
  23. llupdatedownloader.cpp
  24. llupdateinstaller.cpp
  25. )
  26. set(updater_service_HEADER_FILES
  27. llupdaterservice.h
  28. llupdatechecker.h
  29. llupdatedownloader.h
  30. llupdateinstaller.h
  31. )
  32. set_source_files_properties(${updater_service_HEADER_FILES}
  33. PROPERTIES HEADER_FILE_ONLY TRUE)
  34. list(APPEND
  35. updater_service_SOURCE_FILES
  36. ${updater_service_HEADER_FILES}
  37. )
  38. add_library(llupdaterservice
  39. ${updater_service_SOURCE_FILES}
  40. )
  41. target_link_libraries(llupdaterservice
  42. ${LLCOMMON_LIBRARIES}
  43. ${LLMESSAGE_LIBRARIES}
  44. ${LLPLUGIN_LIBRARIES}
  45. ${LLVFS_LIBRARIES}
  46. )
  47. if(LL_TESTS)
  48. SET(llupdater_service_TEST_SOURCE_FILES
  49. llupdaterservice.cpp
  50. )
  51. # *NOTE:Mani - I was trying to use the preprocessor seam to mock out
  52. # llifstream (and other) llcommon classes. I didn't work
  53. # because of the windows declspec(dllimport)attribute.
  54. #set_source_files_properties(
  55. # llupdaterservice.cpp
  56. # PROPERTIES
  57. # LL_TEST_ADDITIONAL_CFLAGS "-Dllifstream=llus_mock_llifstream"
  58. # )
  59. LL_ADD_PROJECT_UNIT_TESTS(llupdaterservice "${llupdater_service_TEST_SOURCE_FILES}")
  60. endif(LL_TESTS)
  61. set(UPDATER_INCLUDE_DIRS
  62. ${LIBS_OPEN_DIR}/viewer_components/updater
  63. CACHE INTERNAL ""
  64. )
  65. set(UPDATER_LIBRARIES
  66. llupdaterservice
  67. CACHE INTERNAL ""
  68. )