Skip to content

Commit 9408c1d

Browse files
authored
Merge pull request #207 from Freed-Wu/install
chore: install headers and dicts
2 parents 99124b1 + 6420af1 commit 9408c1d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ if(NOT TARGET cppjieba)
3535
)
3636
endif()
3737

38+
include(GNUInstallDirs)
39+
install(DIRECTORY include/
40+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
41+
install(DIRECTORY dict/
42+
DESTINATION ${CMAKE_INSTALL_DATADIR}/cppjieba/dict)
43+
3844
if(CPPJIEBA_TOP_LEVEL_PROJECT)
3945
ENABLE_TESTING()
4046

0 commit comments

Comments
 (0)