PageRenderTime 169ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/mac_updater/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 73 lines | 58 code | 14 blank | 1 comment | 0 complexity | a89060fbc6b4f2288bc44201c29839a0 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(mac_updater)
  3. include(00-Common)
  4. include(OpenSSL)
  5. include(CURL)
  6. include(CARes)
  7. include(LLCommon)
  8. include(LLVFS)
  9. include(Linking)
  10. include_directories(
  11. ${LLCOMMON_INCLUDE_DIRS}
  12. ${LLVFS_INCLUDE_DIRS}
  13. ${CURL_INCLUDE_DIRS}
  14. ${CARES_INCLUDE_DIRS}
  15. )
  16. set(mac_updater_SOURCE_FILES
  17. mac_updater.cpp
  18. )
  19. set(mac_updater_HEADER_FILES
  20. CMakeLists.txt
  21. )
  22. set_source_files_properties(${mac_updater_HEADER_FILES}
  23. PROPERTIES HEADER_FILE_ONLY TRUE)
  24. list(APPEND mac_updater_SOURCE_FILES ${mac_updater_HEADER_FILES})
  25. set(mac_updater_RESOURCE_FILES
  26. AutoUpdater.nib/
  27. )
  28. set_source_files_properties(
  29. ${mac_updater_RESOURCE_FILES}
  30. PROPERTIES
  31. HEADER_FILE_ONLY TRUE
  32. )
  33. SOURCE_GROUP("Resources" FILES ${mac_updater_RESOURCE_FILES})
  34. list(APPEND mac_updater_SOURCE_FILES ${mac_updater_RESOURCE_FILES})
  35. add_executable(mac-updater
  36. MACOSX_BUNDLE
  37. ${mac_updater_SOURCE_FILES})
  38. set_target_properties(mac-updater
  39. PROPERTIES
  40. MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
  41. )
  42. target_link_libraries(mac-updater
  43. ${LLVFS_LIBRARIES}
  44. ${OPENSSL_LIBRARIES}
  45. ${CRYPTO_LIBRARIES}
  46. ${CURL_LIBRARIES}
  47. ${CARES_LIBRARIES}
  48. ${LLCOMMON_LIBRARIES}
  49. )
  50. add_custom_command(
  51. TARGET mac-updater POST_BUILD
  52. COMMAND ${CMAKE_COMMAND}
  53. ARGS
  54. -E
  55. copy_directory
  56. ${CMAKE_CURRENT_SOURCE_DIR}/AutoUpdater.nib
  57. ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mac-updater.app/Contents/Resources/AutoUpdater.nib
  58. )
  59. ll_deploy_sharedlibs_command(mac-updater)