forked from vn-input/ibus-unikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (28 loc) · 1.01 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
cmake_minimum_required (VERSION 3.0)
project (ibus-unikey)
cmake_policy(SET CMP0054 NEW)
add_compile_options(-std=c++11 -Werror)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(GNUInstallDirs)
set(LIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}" CACHE string "where to install ibus-{engine,setup}-unikey")
set(PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}")
set(LOCALEDIR "${CMAKE_INSTALL_FULL_LOCALEDIR}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L ${LIBEXECDIR}")
add_definitions(
-DPACKAGE_NAME="${PROJECT_NAME}"
-DGETTEXT_PACKAGE="${PROJECT_NAME}"
-DPACKAGE_VERSION="0.7.0"
-DPACKAGE_BUGREPORT="https://github.com/vn-input/ibus-unikey/issues"
-DLOCALEDIR="${LOCALEDIR}"
-DPKGDATADIR="${PKGDATADIR}"
-DLIBEXECDIR="${LIBEXECDIR}"
)
include_directories(
${PROJECT_SOURCE_DIR}/ukengine
${PROJECT_SOURCE_DIR}/src/config
)
add_subdirectory(ukengine)
add_subdirectory(src)
add_subdirectory(setup)
add_subdirectory(data)
add_subdirectory(po)