PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms 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
 1# -*- cmake -*-
 2
 3project(mac_updater)
 4
 5include(00-Common)
 6include(OpenSSL)
 7include(CURL)
 8include(CARes)
 9include(LLCommon)
10include(LLVFS)
11include(Linking)
12
13include_directories(
14    ${LLCOMMON_INCLUDE_DIRS}
15    ${LLVFS_INCLUDE_DIRS}
16    ${CURL_INCLUDE_DIRS}
17    ${CARES_INCLUDE_DIRS}
18    )
19
20set(mac_updater_SOURCE_FILES
21    mac_updater.cpp
22    )
23
24set(mac_updater_HEADER_FILES
25    CMakeLists.txt
26    )
27
28set_source_files_properties(${mac_updater_HEADER_FILES}
29                            PROPERTIES HEADER_FILE_ONLY TRUE)
30
31list(APPEND mac_updater_SOURCE_FILES ${mac_updater_HEADER_FILES})
32
33
34set(mac_updater_RESOURCE_FILES
35  AutoUpdater.nib/
36  )
37set_source_files_properties(
38  ${mac_updater_RESOURCE_FILES}
39  PROPERTIES
40  HEADER_FILE_ONLY TRUE
41  )
42SOURCE_GROUP("Resources" FILES ${mac_updater_RESOURCE_FILES})
43list(APPEND mac_updater_SOURCE_FILES ${mac_updater_RESOURCE_FILES})
44
45add_executable(mac-updater
46  MACOSX_BUNDLE
47  ${mac_updater_SOURCE_FILES})
48
49set_target_properties(mac-updater
50  PROPERTIES
51  MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
52  )
53
54target_link_libraries(mac-updater
55    ${LLVFS_LIBRARIES}
56    ${OPENSSL_LIBRARIES}
57    ${CRYPTO_LIBRARIES}
58    ${CURL_LIBRARIES}
59    ${CARES_LIBRARIES}
60    ${LLCOMMON_LIBRARIES}
61    )
62
63add_custom_command(
64  TARGET mac-updater POST_BUILD
65  COMMAND ${CMAKE_COMMAND}
66  ARGS
67    -E
68    copy_directory
69    ${CMAKE_CURRENT_SOURCE_DIR}/AutoUpdater.nib
70    ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mac-updater.app/Contents/Resources/AutoUpdater.nib
71  )
72
73ll_deploy_sharedlibs_command(mac-updater)