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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(mac_updater)
  3. include(00-Common)
  4. include(CURL)
  5. include(LLCommon)
  6. include(LLVFS)
  7. include(Linking)
  8. include_directories(
  9.     ${LLCOMMON_INCLUDE_DIRS}
  10.     ${LLVFS_INCLUDE_DIRS}
  11.     )
  12. set(mac_updater_SOURCE_FILES
  13.     mac_updater.cpp
  14.     FSCopyObject.c
  15.     GenLinkedList.c
  16.     MoreFilesX.c
  17.     )
  18. set(mac_updater_HEADER_FILES
  19.     CMakeLists.txt
  20.     FSCopyObject.h
  21.     GenLinkedList.h
  22.     MoreFilesX.h
  23.     )
  24. set_source_files_properties(
  25.     FSCopyObject.c
  26.     MoreFilesX.c
  27.     PROPERTIES
  28.     COMPILE_FLAGS -Wno-deprecated-declarations
  29.     )
  30. set_source_files_properties(${mac_updater_HEADER_FILES}
  31.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  32. list(APPEND mac_updater_SOURCE_FILES ${mac_updater_HEADER_FILES})
  33. set(mac_updater_RESOURCE_FILES
  34.   AutoUpdater.nib/
  35.   )
  36. set_source_files_properties(
  37.   ${mac_updater_RESOURCE_FILES}
  38.   PROPERTIES
  39.   HEADER_FILE_ONLY TRUE
  40.   )
  41. SOURCE_GROUP("Resources" FILES ${mac_updater_RESOURCE_FILES})
  42. list(APPEND mac_updater_SOURCE_FILES ${mac_updater_RESOURCE_FILES})
  43. add_executable(mac-updater
  44.   MACOSX_BUNDLE
  45.   ${mac_updater_SOURCE_FILES})
  46. set_target_properties(mac-updater
  47.   PROPERTIES
  48.   MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
  49.   )
  50. target_link_libraries(mac-updater
  51.     ${LLVFS_LIBRARIES}
  52.     ${CURL_LIBRARIES}
  53.     ${LLCOMMON_LIBRARIES}
  54.     )
  55. add_custom_command(
  56.   TARGET mac-updater POST_BUILD
  57.   COMMAND ${CMAKE_COMMAND}
  58.   ARGS
  59.     -E
  60.     copy_directory
  61.     ${CMAKE_CURRENT_SOURCE_DIR}/AutoUpdater.nib
  62.     ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mac-updater.app/Contents/Resources/AutoUpdater.nib
  63.   )
  64. ll_deploy_sharedlibs_command(mac-updater)