summaryrefslogtreecommitdiff
path: root/hangul
diff options
context:
space:
mode:
authorWon-Kyu Park <wkpark@gmail.com>2023-02-27 00:30:55 +0900
committerWon-Kyu Park <wkpark@gmail.com>2023-02-27 00:34:40 +0900
commit7c2fb9216e72302134115c1483d4c3d2b1edd3a1 (patch)
tree9c698b281ed0ce4bcfa6ea40a02158cf5c715634 /hangul
parent3db276b40c0b82f26d4d013d70d380d8baf173e0 (diff)
downloadlibhangul-7c2fb9216e72302134115c1483d4c3d2b1edd3a1.tar.gz
cmake: check glob.h and add config.h.cmake.in
Diffstat (limited to 'hangul')
-rw-r--r--hangul/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/hangul/CMakeLists.txt b/hangul/CMakeLists.txt
index 93f7fb4..14fde95 100644
--- a/hangul/CMakeLists.txt
+++ b/hangul/CMakeLists.txt
@@ -44,12 +44,17 @@ add_library(hangul
)
target_compile_definitions(hangul
+ PRIVATE -DHAVE_CONFIG_H
PRIVATE -DLOCALEDIR=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\"
PRIVATE -DLIBHANGUL_DEFAULT_HANJA_DIC=\"${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}/hanja/hanja.txt\"
PRIVATE -DLIBHANGUL_DATA_DIR=\"${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}\"
PRIVATE -DTOP_SRCDIR=\"${CMAKE_SOURCE_DIR}\"
)
+target_include_directories(hangul
+ PRIVATE "${CMAKE_BINARY_DIR}"
+)
+
if(ENABLE_EXTERNAL_KEYBOARDS)
target_compile_definitions(hangul
PRIVATE -DENABLE_EXTERNAL_KEYBOARDS=1