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 (74 lines) | stat: -rw-r--r-- 1,558 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
set(fcitx_config_gtk_sources
  sub_config_parser.c
  sub_config_widget.c
  config_widget.c
  configdesc.c
  keygrab.c
  main.c
  main_window.c
  im_widget.c
  im.c
  gdm-languages.c
  )
set(fcitx_config_gtk_headers
  common.h
  configdesc.h
  config_widget.h
  gdm-languages.h
  im.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_gtk_sources}
  ${fcitx_config_gtk_headers})

if(NOT ENABLE_GTK2)
  return()
endif()

PKG_CHECK_MODULES (DBUS_GLIB "dbus-glib-1" REQUIRED)
PKG_CHECK_MODULES (UNIQUE "unique-1.0")

include_directories (
  ${GTK2_INCLUDE_DIRS}
  ${GLIB2_INCLUDE_DIRS}
  ${FCITX4_FCITX_INCLUDE_DIRS}
  ${FCITX4_FCITX_UTILS_INCLUDE_DIRS}
  ${FCITX4_FCITX_CONFIG_INCLUDE_DIRS}
  ${DBUS_GLIB_INCLUDE_DIRS}
  )

link_directories (
  ${GTK2_LIBRARY_DIRS}
  ${GLIB2_LIBRARY_DIRS}
  ${FCITX4_FCITX_LIBRARY_DIRS}
  ${FCITX4_FCITX_UTILS_LIBRARY_DIRS}
  ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS}
  ${DBUS_GLIB_LIBRARY_DIRS}
  )
if(UNIQUE_FOUND)
  include_directories (${UNIQUE_INCLUDE_DIRS})
  link_directories (${UNIQUE_LIBRARY_DIRS})
endif()

add_executable(fcitx-config-gtk ${fcitx_config_gtk_sources})

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

target_link_libraries (fcitx-config-gtk
  ${GTK2_LIBRARIES}
  ${FCITX4_FCITX_UTILS_LIBRARIES}
  ${FCITX4_FCITX_CONFIG_LIBRARIES}
  ${FCITX4_FCITX_LIBRARIES}
  ${GLIB2_LIBRARIES}
  ${DBUS_GLIB_LIBRARIES}
  )

if(UNIQUE_FOUND)
  target_link_libraries (fcitx-config-gtk ${UNIQUE_LIBRARIES})
endif()