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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(linux_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(UI)
  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(linux_crash_logger_SOURCE_FILES
  20.     linux_crash_logger.cpp
  21.     llcrashloggerlinux.cpp
  22.     )
  23. set(linux_crash_logger_HEADER_FILES
  24.     CMakeLists.txt
  25.     llcrashloggerlinux.h
  26.     )
  27. set_source_files_properties(${linux_crash_logger_HEADER_FILES}
  28.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  29. list(APPEND linux_crash_logger_SOURCE_FILES
  30.      ${linux_crash_logger_HEADER_FILES}
  31.      )
  32. set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
  33. add_executable(linux-crash-logger ${linux_crash_logger_SOURCE_FILES})
  34. target_link_libraries(linux-crash-logger
  35.     ${LLCRASHLOGGER_LIBRARIES}
  36.     ${LLVFS_LIBRARIES}
  37.     ${LLXML_LIBRARIES}
  38.     ${LLMESSAGE_LIBRARIES}
  39.     ${LLVFS_LIBRARIES}
  40.     ${LLMATH_LIBRARIES}
  41.     ${LLCOMMON_LIBRARIES}
  42.     ${UI_LIBRARIES}
  43.     ${DB_LIBRARIES}
  44.     )
  45. add_custom_target(linux-crash-logger-target ALL
  46.                   DEPENDS linux-crash-logger)