CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:2k
源码类别:

游戏引擎

开发平台:

C++ Builder

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