forked from BoGoEngine/ibus-bogo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
39 lines (30 loc) · 1.14 KB
/
CMakeLists.txt
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
cmake_minimum_required (VERSION 2.6)
project (ibus-bogo NONE)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# Author and software info:
set (AUTHORS "AUTHORS") # File AUTHORS
set (EMAIL "[email protected]")
set (VENDOR "Hanoi Community Space")
set (HOMEPAGE "http://bogoengine.github.com/")
# IBus wouldn't detect our engine if we installed to /usr/local
# But we also have to allow other prefixes for packaging
if (CMAKE_INSTALL_PREFIX STREQUAL "/usr/local")
message ("-- Installing to /usr by default")
set (CMAKE_INSTALL_PREFIX "/usr")
endif()
# Installation variables
set (BOGO_INSTALL_DIR "share/ibus-bogo")
set (IBUS_COMPONENT_DIR "share/ibus/component")
# uninstall target
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
ENABLE_TESTING()
# Directories with CMakeLists.txt
add_subdirectory (bogo)
add_subdirectory (ibus_engine)
add_subdirectory (vncharsets)
add_subdirectory (gui)