Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com>
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 9027f82..e67b0f0 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -8,6 +8,7 @@ set(LIBRIME_VERSION 0.9.2) | ||
set(LIBRIME_SOVERSION 0) | ||
|
||
option(BUILD_STATIC "Build static version of Rime" OFF) | ||
+option(BUILD_DATA "Build data for Rime" OFF) | ||
|
||
if(WIN32) | ||
set(EXT ".exe") | ||
@@ -107,12 +108,14 @@ if (NOT BUILD_STATIC) | ||
install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) | ||
install(FILES cmake/RimeConfig.cmake DESTINATION share/cmake/rime) | ||
# data files | ||
+ if (BUILD_DATA) | ||
install(FILES ${PROJECT_SOURCE_DIR}/data/default.yaml DESTINATION ${pkgdatadir}) | ||
install(FILES ${PROJECT_SOURCE_DIR}/data/essay.kct DESTINATION ${pkgdatadir}) | ||
file(GLOB preset_schema ${PROJECT_SOURCE_DIR}/data/preset/*.yaml) | ||
install(FILES ${preset_schema} DESTINATION ${pkgdatadir}) | ||
file(GLOB supplement_schema ${PROJECT_SOURCE_DIR}/data/supplement/*.yaml) | ||
install(FILES ${supplement_schema} DESTINATION ${pkgdatadir}) | ||
+ endif(NOT BUILD_DATA) | ||
endif (NOT BUILD_STATIC) | ||
|
||
add_subdirectory(src) |