-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
49 lines (45 loc) · 1.42 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
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 2.8.8)
project(TSF-chewing)
add_subdirectory(libchewing)
include_directories(libchewing/include)
# http://www.utf8everywhere.org/
add_definitions(/D_UNICODE=1 /DUNICODE=1)
set(SRC ${PROJECT_SOURCE_DIR}/src)
add_library(ChewingService SHARED
${SRC}/CandidateList.h
${SRC}/CandidateWindow.h
${SRC}/DisplayAttributeInfo.h
${SRC}/EditSession.h
${SRC}/EnumDisplayAttributeInfo.h
${SRC}/Globals.h
${SRC}/Resource.h
${SRC}/TextService.h
${SRC}/Util.h
${SRC}/CandidateList.cpp
${SRC}/CandidateWindow.cpp
${SRC}/Compartment.cpp
${SRC}/Composition.cpp
${SRC}/DisplayAttribute.cpp
${SRC}/DisplayAttributeInfo.cpp
${SRC}/DisplayAttributeProvider.cpp
${SRC}/DllMain.cpp
${SRC}/EndComposition.cpp
${SRC}/EnumDisplayAttributeInfo.cpp
${SRC}/Globals.cpp
${SRC}/KeyEventSink.cpp
${SRC}/KeyHandler.cpp
${SRC}/LanguageBar.cpp
${SRC}/PreComp.cpp
${SRC}/Register.cpp
${SRC}/Server.cpp
${SRC}/StartComposition.cpp
${SRC}/TextEditSink.cpp
${SRC}/TextService.cpp
${SRC}/ThreadMgrEventSink.cpp
${SRC}/TextService.def
${SRC}/TextService.ico
${SRC}/TextService.rc
${SRC}/Util.cpp
)
# How to link to target in subproject?
target_link_libraries(ChewingService chewing_static)