forked from EasyIME/PIME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (31 loc) · 839 Bytes
/
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(PIMETextService)
# http://www.utf8everywhere.org/
add_definitions(/D_UNICODE=1 /DUNICODE=1)
set(CMAKE_CXX_STANDARD 14)
# generate the resource file containing version info
configure_file("PIMETextService.rc.in" "PIMETextService.rc" @ONLY)
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/jsoncpp/include
${CMAKE_CURRENT_SOURCE_DIR}
)
add_library(PIMETextService SHARED
# core IME implementation
PIMEImeModule.cpp
PIMEImeModule.h
PIMETextService.cpp
PIMETextService.def
PIMETextService.h
PIMEClient.cpp
PIMEClient.h
PIMELangBarButton.cpp
PIMELangBarButton.h
DllEntry.cpp
# resources
${CMAKE_CURRENT_BINARY_DIR}/PIMETextService.rc
)
target_link_libraries(PIMETextService
libIME2_static
jsoncpp_lib_static
)