PageRenderTime 242ms CodeModel.GetById 140ms app.highlight 1ms RepoModel.GetById 100ms app.codeStats 0ms

/indra/linux_crash_logger/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 59 lines | 46 code | 12 blank | 1 comment | 0 complexity | 665d17f216f344407f4c4e9a009e7574 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(linux_crash_logger)
 4
 5include(00-Common)
 6include(GLH)
 7include(LLCommon)
 8include(LLCrashLogger)
 9include(LLMath)
10include(LLMessage)
11include(LLVFS)
12include(LLXML)
13include(Linking)
14include(UI)
15
16include_directories(
17    ${LLCOMMON_INCLUDE_DIRS}
18    ${LLCRASHLOGGER_INCLUDE_DIRS}
19    ${LLMATH_INCLUDE_DIRS}
20    ${LLVFS_INCLUDE_DIRS}
21    ${LLXML_INCLUDE_DIRS}
22    )
23
24set(linux_crash_logger_SOURCE_FILES
25    linux_crash_logger.cpp
26    llcrashloggerlinux.cpp
27    )
28
29set(linux_crash_logger_HEADER_FILES
30    CMakeLists.txt
31
32    llcrashloggerlinux.h
33    )
34
35set_source_files_properties(${linux_crash_logger_HEADER_FILES}
36                            PROPERTIES HEADER_FILE_ONLY TRUE)
37
38list(APPEND linux_crash_logger_SOURCE_FILES
39     ${linux_crash_logger_HEADER_FILES}
40     )
41
42set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
43
44add_executable(linux-crash-logger ${linux_crash_logger_SOURCE_FILES})
45
46target_link_libraries(linux-crash-logger
47    ${LLCRASHLOGGER_LIBRARIES}
48    ${LLVFS_LIBRARIES}
49    ${LLXML_LIBRARIES}
50    ${LLMESSAGE_LIBRARIES}
51    ${LLVFS_LIBRARIES}
52    ${LLMATH_LIBRARIES}
53    ${LLCOMMON_LIBRARIES}
54    ${UI_LIBRARIES}
55    ${DB_LIBRARIES}
56    )
57
58add_custom_target(linux-crash-logger-target ALL
59                  DEPENDS linux-crash-logger)