PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/mac_crash_logger/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 80 lines | 64 code | 15 blank | 1 comment | 0 complexity | 7193bf7f53faf81ebb967661d6846ada MD5 | raw file
 1# -*- cmake -*-
 2
 3project(mac_crash_logger)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLCrashLogger)
 8include(LLMath)
 9include(LLMessage)
10include(LLVFS)
11include(LLXML)
12include(Linking)
13include(LLSharedLibs)
14
15include_directories(
16    ${LLCOMMON_INCLUDE_DIRS}
17    ${LLCRASHLOGGER_INCLUDE_DIRS}
18    ${LLMATH_INCLUDE_DIRS}
19    ${LLVFS_INCLUDE_DIRS}
20    ${LLXML_INCLUDE_DIRS}
21    )
22
23set(mac_crash_logger_SOURCE_FILES
24    mac_crash_logger.cpp
25    llcrashloggermac.cpp
26    )
27
28set(mac_crash_logger_HEADER_FILES
29    CMakeLists.txt
30
31    llcrashloggermac.h
32    )
33
34set_source_files_properties(${mac_crash_logger_HEADER_FILES}
35                            PROPERTIES HEADER_FILE_ONLY TRUE)
36list(APPEND mac_crash_logger_SOURCE_FILES ${mac_crash_logger_HEADER_FILES})
37
38set(mac_crash_logger_RESOURCE_FILES
39  CrashReporter.nib/
40  )
41set_source_files_properties(
42  ${mac_crash_logger_RESOURCE_FILES}
43  PROPERTIES
44  HEADER_FILE_ONLY TRUE
45  )
46SOURCE_GROUP("Resources" FILES ${mac_crash_logger_RESOURCE_FILES})
47list(APPEND mac_crash_logger_SOURCE_FILES ${mac_crash_logger_RESOURCE_FILES})
48
49add_executable(mac-crash-logger
50  MACOSX_BUNDLE
51  ${mac_crash_logger_SOURCE_FILES})
52
53set_target_properties(mac-crash-logger
54  PROPERTIES
55  MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
56  )
57
58target_link_libraries(mac-crash-logger
59    ${LLCRASHLOGGER_LIBRARIES}
60    ${LLVFS_LIBRARIES}
61    ${LLXML_LIBRARIES}
62    ${LLMESSAGE_LIBRARIES}
63    ${LLVFS_LIBRARIES}
64    ${LLMATH_LIBRARIES}
65    ${LLCOMMON_LIBRARIES}
66    )
67
68add_custom_command(
69  TARGET mac-crash-logger POST_BUILD
70  COMMAND ${CMAKE_COMMAND}
71  ARGS
72    -E
73    copy_directory
74    ${CMAKE_CURRENT_SOURCE_DIR}/CrashReporter.nib
75    ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mac-crash-logger.app/Contents/Resources/CrashReporter.nib
76  )
77
78ll_deploy_sharedlibs_command(mac-crash-logger)
79
80