This repository was archived by the owner on Mar 24, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.31.6...3.31.6 )
2- project (libchewing-data LANGUAGES NONE )
2+ project (libchewing-data VERSION 2026.1.27 LANGUAGES NONE )
3+
4+ if (PROJECT_IS_TOP_LEVEL)
5+ set (CMAKE_SYSTEM_NAME Generic)
6+ endif ()
37
48option (USE_SYSTEM_CHEWING_CLI "Use system-installed chewing-cli instead of building from source" ON )
59
@@ -11,5 +15,12 @@ if(USE_SYSTEM_CHEWING_CLI)
1115 )
1216endif ()
1317
18+ include (GNUInstallDirs )
19+
1420add_subdirectory (dict/chewing )
1521add_subdirectory (misc )
22+
23+ if (PROJECT_IS_TOP_LEVEL)
24+ set (CPACK_GENERATOR "ZIP" )
25+ include (CPack )
26+ endif ()
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ foreach(TARGET ${TARGETS})
88 COMMAND ${CHEWING_CLI} init --csv ${CMAKE_CURRENT_SOURCE_DIR} /${SRC} ${TARGET}
99 DEPENDS ${SRC}
1010 )
11+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /${TARGET} DESTINATION ${CMAKE_INSTALL_DATADIR} /libchewing)
1112endforeach ()
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ add_custom_command(
1515 ${CMAKE_CURRENT_SOURCE_DIR} /symbols.dat
1616)
1717add_custom_target (misc ALL DEPENDS swkb.dat symbols.dat )
18+
19+ install (FILES swkb.dat symbols.dat DESTINATION ${CMAKE_INSTALL_DATADIR} /libchewing)
You can’t perform that action at this time.
0 commit comments