summaryrefslogtreecommitdiff
path: root/indra/linux_updater/CMakeLists.txt
blob: 4a9e82f9b620b3a0202e974d60c73c868f25bccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- cmake -*-

project(linux_updater)

include(00-Common)
include(CURL)
include(CARes)
include(OpenSSL)
include(UI)
include(LLCommon)
include(LLMessage)
include(LLVFS)
include(LLXML)
include(LLUI)
include(Linking)

include_directories(
    ${LLCOMMON_INCLUDE_DIRS}
    ${LLVFS_INCLUDE_DIRS}
    ${LLXML_INCLUDE_DIRS}
    ${LLUI_INCLUDE_DIRS}
    ${CURL_INCLUDE_DIRS}
    ${CARES_INCLUDE_DIRS}
    ${OPENSSL_INCLUDE_DIRS}
    ${UI_INCLUDE_DIRS}
    )
include_directories(SYSTEM
    ${LLCOMMON_SYSTEM_INCLUDE_DIRS}
    ${LLXML_SYSTEM_INCLUDE_DIRS}
    )

set(linux_updater_SOURCE_FILES linux_updater.cpp)

set(linux_updater_HEADER_FILES CMakeLists.txt)

set_source_files_properties(${linux_updater_HEADER_FILES}
                            PROPERTIES HEADER_FILES_ONLY TRUE)

list(APPEND linux_updater_SOURCE_FILES ${linux_updater_HEADER_FILES})

add_executable(linux-updater ${linux_updater_SOURCE_FILES})

target_link_libraries(linux-updater
    ${CURL_LIBRARIES}
    ${CARES_LIBRARIES}
    ${OPENSSL_LIBRARIES}
    ${CRYPTO_LIBRARIES}
    ${LLMESSAGE_LIBRARIES}
    ${UI_LIBRARIES}
    ${LLXML_LIBRARIES}
    ${LLUI_LIBRARIES}
    ${LLVFS_LIBRARIES}
    ${LLCOMMON_LIBRARIES}
    )

add_custom_target(linux-updater-target ALL
                  DEPENDS linux-updater)