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

/indra/win_updater/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 45 lines | 27 code | 12 blank | 6 comment | 0 complexity | e96edcc33771bfb4227cb95d72a9ffba MD5 | raw file
 1# -*- cmake -*-
 2
 3project(win_updater)
 4
 5include(00-Common)
 6include(LLCommon)
 7include(Linking)
 8
 9# *HACK - override msvcrt implementation (intialized on 00-Common) to be
10# statically linked for the installer this relies on vc taking the last flag on
11# the command line
12set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
13set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT")
14set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
15
16include_directories(
17    ${LLCOMMON_INCLUDE_DIRS}
18    )
19
20set(win_updater_SOURCE_FILES updater.cpp)
21
22set(win_updater_HEADER_FILES CMakeLists.txt)
23
24set_source_files_properties(${win_updater_HEADER_FILES}
25                            PROPERTIES HEADER_FILE_ONLY TRUE)
26
27list(APPEND win_updater_SOURCE_FILES ${win_updater_HEADER_FILES})
28
29add_executable(windows-updater WIN32 ${win_updater_SOURCE_FILES})
30
31target_link_libraries(windows-updater
32    wininet
33    user32
34    gdi32
35    shell32
36    )
37
38set_target_properties(windows-updater
39    PROPERTIES
40    LINK_FLAGS "/NODEFAULTLIB:MSVCRT"
41    LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;MSVCRT\""
42    )
43
44# The windows-updater doesn't link against anything non-system, apparently
45#ll_deploy_sharedlibs_command(windows-updater)