-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
28 lines (23 loc) · 777 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
cmake_minimum_required(VERSION 3.14)
project(libhanjp)
set(GObject_USE_STATIC_LIBS OFF)
include(GenerateExportHeader)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GObject REQUIRED gobject-2.0)
add_library(hanjp hanjpautomata.c hanjpinputcontext.c hanjpkeyboard.c
${PROJECT_SOURCE_DIR}/libhangul/hangul/hangulctype.c
${PROJECT_SOURCE_DIR}/libhangul/hangul/hangulkeyboard.c
)
target_include_directories(hanjp PUBLIC ${GObject_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/libhangul/hangul)
target_link_libraries(hanjp ${GObject_LIBRARIES})
generate_export_header(hanjp)
add_subdirectory(test)
install(TARGETS hanjp DESTINATION lib)
install(FILES
hanjp.h
hanjpautomata.h
hanjpkeyboard.h
hanjpinputcontext.h
hanjpunicode.h
DESTINATION include
)