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

/indra/viewer_components/updater/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 82 lines | 59 code | 14 blank | 9 comment | 2 complexity | fef3f29448a3fd1e3f40a8ae7337385b MD5 | raw file
 1# -*- cmake -*-
 2
 3project(updater_service)
 4
 5include(00-Common)
 6if(LL_TESTS)
 7  include(LLAddBuildTest)
 8endif(LL_TESTS)
 9include(CMakeCopyIfDifferent)
10include(CURL)
11include(LLCommon)
12include(LLMessage)
13include(LLPlugin)
14include(LLVFS)
15
16include_directories(
17    ${LLCOMMON_INCLUDE_DIRS}
18    ${LLMESSAGE_INCLUDE_DIRS}
19    ${LLPLUGIN_INCLUDE_DIRS}
20    ${LLVFS_INCLUDE_DIRS}
21    ${CURL_INCLUDE_DIRS}
22    )
23
24set(updater_service_SOURCE_FILES
25    llupdaterservice.cpp
26    llupdatechecker.cpp
27    llupdatedownloader.cpp
28    llupdateinstaller.cpp
29    )
30
31set(updater_service_HEADER_FILES
32    llupdaterservice.h
33    llupdatechecker.h
34    llupdatedownloader.h
35    llupdateinstaller.h
36    )
37
38set_source_files_properties(${updater_service_HEADER_FILES}
39                            PROPERTIES HEADER_FILE_ONLY TRUE)
40
41list(APPEND 
42    updater_service_SOURCE_FILES 
43    ${updater_service_HEADER_FILES} 
44    )
45
46add_library(llupdaterservice
47            ${updater_service_SOURCE_FILES}
48            )
49
50target_link_libraries(llupdaterservice
51    ${LLCOMMON_LIBRARIES}
52    ${LLMESSAGE_LIBRARIES}
53    ${LLPLUGIN_LIBRARIES}
54    ${LLVFS_LIBRARIES}
55    )
56
57if(LL_TESTS)
58  SET(llupdater_service_TEST_SOURCE_FILES
59      llupdaterservice.cpp
60      )
61
62# *NOTE:Mani - I was trying to use the preprocessor seam to mock out
63#              llifstream (and other) llcommon classes. I didn't work
64#              because of the windows declspec(dllimport)attribute.
65#set_source_files_properties(
66#    llupdaterservice.cpp
67#    PROPERTIES
68#      LL_TEST_ADDITIONAL_CFLAGS "-Dllifstream=llus_mock_llifstream"
69#    )
70
71  LL_ADD_PROJECT_UNIT_TESTS(llupdaterservice "${llupdater_service_TEST_SOURCE_FILES}")
72endif(LL_TESTS)
73
74set(UPDATER_INCLUDE_DIRS 
75  ${LIBS_OPEN_DIR}/viewer_components/updater 
76  CACHE INTERNAL ""
77)
78
79set(UPDATER_LIBRARIES 
80  llupdaterservice
81  CACHE INTERNAL ""
82)