summaryrefslogtreecommitdiffstats
path: root/tools/assistant/CMakeLists.txt
blob: 509fb6f460977b94dba30df604c91423c0ca0de3 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}/include
  ${ZLIB_INCLUDE_DIRS}
)

link_directories()


##### subdirectories

tde_auto_add_subdirectories()


##### tqassistant (executable)

set( target tqassistant )

file(
    GLOB ${target}_IMAGES
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/images/*.png
)
list( SORT ${target}_IMAGES )

tde_add_executable( ${target}
  SOURCES
    main.cpp
    helpwindow.cpp
    topicchooserimpl.cpp
    docuparser.cpp
    helpdialogimpl.cpp
    settingsdialogimpl.cpp
    index.cpp
    profile.cpp
    config.cpp

    mainwindow.ui
    topicchooser.ui
    finddialog.ui
    helpdialog.ui
    settingsdialog.ui
    tabbedbrowser.ui

  LINK
    tqt-mt-shared
    tqassistantclient-shared

  DESTINATION
    ${BIN_INSTALL_DIR}

  DEPENDENCIES
    tquic
)

set_property(
  TARGET ${target}
  APPEND PROPERTY COMPILE_DEFINITIONS
    QT_INTERNAL_NETWORK
    QT_INTERNAL_XML
)

tqt_automoc( ${target} )
tqt_uic_embed( ${target} FILES ${${target}_IMAGES} )


##### other data

tde_create_translated_desktop(
  SOURCE ${target}.desktop
  DESTINATION ${QT_INSTALL_SHARE}/applications
)

if( BUILD_TRANSLATIONS )
  tqt_create_translation()
endif()

install(
  FILES images/appicon.png
  DESTINATION ${QT_INSTALL_SHARE}/pixmaps
  RENAME ${target}.png
)