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

/indra/win_crash_logger/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 92 lines | 74 code | 17 blank | 1 comment | 1 complexity | 76146f351dfb4c6aaa47e11cbbfa2130 MD5 | raw file
 1# -*- cmake -*-
 2
 3project(win_crash_logger)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(LLCrashLogger)
 8include(LLMath)
 9include(LLMessage)
10include(LLVFS)
11include(LLWindow)
12include(LLXML)
13include(Linking)
14include(LLSharedLibs)
15
16include_directories(
17    ${LLCOMMON_INCLUDE_DIRS}
18    ${LLCRASHLOGGER_INCLUDE_DIRS}
19    ${LLMATH_INCLUDE_DIRS}
20    ${LLWINDOW_INCLUDE_DIRS}
21    ${LLXML_INCLUDE_DIRS}
22    ${LLVFS_INCLUDE_DIRS}
23    )
24
25set(win_crash_logger_SOURCE_FILES
26    win_crash_logger.cpp
27    llcrashloggerwindows.cpp
28    )
29
30set(win_crash_logger_HEADER_FILES
31    CMakeLists.txt
32
33    llcrashloggerwindows.h
34    resource.h
35    StdAfx.h
36    win_crash_logger.h
37    )
38
39set_source_files_properties(${win_crash_logger_HEADER_FILES}
40                            PROPERTIES HEADER_FILE_ONLY TRUE)
41
42set(win_crash_logger_RESOURCE_FILES
43    ll_icon.ico
44    )
45
46set_source_files_properties(${win_crash_logger_RESOURCE_FILES}
47                            PROPERTIES HEADER_FILE_ONLY TRUE)
48
49set(win_crash_logger_RESOURCE_FILES 
50    win_crash_logger.rc
51    ${win_crash_logger_RESOURCE_FILES}
52    )
53
54SOURCE_GROUP("Resource Files" FILES ${win_crash_logger_RESOURCE_FILES})
55
56list(APPEND 
57    win_crash_logger_SOURCE_FILES 
58    ${win_crash_logger_HEADER_FILES} 
59    ${win_crash_logger_RESOURCE_FILES}
60    )
61
62find_library(DXGUID_LIBRARY dxguid ${DIRECTX_LIBRARY_DIR})
63
64add_executable(windows-crash-logger WIN32 ${win_crash_logger_SOURCE_FILES})
65
66target_link_libraries(windows-crash-logger
67    ${LLCRASHLOGGER_LIBRARIES}
68    ${LLWINDOW_LIBRARIES}
69    ${LLVFS_LIBRARIES}
70    ${LLXML_LIBRARIES}
71    ${LLMESSAGE_LIBRARIES}
72    ${LLMATH_LIBRARIES}
73    ${LLCOMMON_LIBRARIES}
74    ${WINDOWS_LIBRARIES}
75    ${DXGUID_LIBRARY}
76    ${GOOGLE_PERFTOOLS_LIBRARIES}
77    user32
78    gdi32
79    ole32
80    oleaut32
81    Wldap32
82    )
83    
84if (WINDOWS)
85    set_target_properties(windows-crash-logger
86        PROPERTIES 
87        LINK_FLAGS "/NODEFAULTLIB:LIBCMT"
88        LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;LIBCMTD;MSVCRT\""
89        )
90endif (WINDOWS)
91
92ll_deploy_sharedlibs_command(windows-crash-logger)