File: CMakeLists.txt

package info (click to toggle)
fcitx-configtool 0.4.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: ansic: 6,774; sh: 16; xml: 7; makefile: 7
file content (77 lines) | stat: -rw-r--r-- 1,637 bytes parent folder | download | duplicates (6)
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
include(gresource)

gresource(${CMAKE_CURRENT_SOURCE_DIR} fcitx-config-gtk3.gresource.xml
  ${CMAKE_CURRENT_BINARY_DIR} RESOURCE_FILE RESOURCE_HEADER)

set(fcitx_config_gtk3_sources
  sub_config_parser.c
  sub_config_widget.c
  config_widget.c
  configdesc.c
  keygrab.c
  main.c
  main_window.c
  im_widget.c
  ui_widget.c
  gdm-languages.c
  im_dialog.c
  common.c
  im_config_dialog.c
  dummy_config.c
  )
set(fcitx_config_gtk3_headers
  common.h
  configdesc.h
  config_widget.h
  dummy_config.h
  gdm-languages.h
  im_config_dialog.h
  im_dialog.h
  ui_widget.h
  im_widget.h
  keygrab.h
  locarchive.h
  main_window.h
  sub_config_parser.h
  sub_config_widget.h
  )

fcitx_translate_add_sources(${fcitx_config_gtk3_sources}
  ${fcitx_config_gtk3_headers})
fcitx_translate_add_sources(EXTRACT_TYPE glade
  im_dialog.ui im_widget.ui)

if(NOT ENABLE_GTK3)
  return()
endif()

include_directories (
  ${GTK3_INCLUDE_DIRS}
  ${FCITX4_FCITX_INCLUDE_DIRS}
  ${FCITX4_FCITX_UTILS_INCLUDE_DIRS}
  ${FCITX4_FCITX_CONFIG_INCLUDE_DIRS}
  ${FCITX_GCLIENT_INCLUDE_DIRS}
  ${CMAKE_CURRENT_BINARY_DIR}
  )

link_directories (
  ${GTK3_LIBRARY_DIRS}
  ${FCITX4_FCITX_LIBRARY_DIRS}
  ${FCITX4_FCITX_UTILS_LIBRARY_DIRS}
  ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS}
  ${FCITX_GCLIENT_LIBRARY_DIRS}
  )

add_executable(fcitx-config-gtk3 ${fcitx_config_gtk3_sources}
  ${RESOURCE_FILE}
  ${RESOURCE_HEADER})

install(TARGETS fcitx-config-gtk3 RUNTIME DESTINATION bin)

target_link_libraries (fcitx-config-gtk3
  ${GTK3_LIBRARIES}
  ${FCITX4_FCITX_UTILS_LIBRARIES}
  ${FCITX4_FCITX_CONFIG_LIBRARIES}
  ${FCITX4_FCITX_LIBRARIES}
  ${FCITX_GCLIENT_LIBRARIES}
  )