diff --git a/CMakeLists.txt b/CMakeLists.txt index 385b187..47eddbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,3 +134,25 @@ target_include_directories(sj3dic target_link_libraries(sj3dic sj3lib ) + +add_executable(sj3mkdic + sj3mkdic/char.c + sj3mkdic/cnvhinsi.c + sj3mkdic/file.c + sj3mkdic/global.c + sj3mkdic/hindo.c + sj3mkdic/knjcvt.c + sj3mkdic/makedict.c + sj3mkdic/makelist.c + sj3mkdic/makeseg.c + sj3mkdic/memory.c + sj3mkdic/offset.c + sj3mkdic/readline.c + sj3mkdic/string.c +) +target_include_directories(sj3mkdic + PRIVATE sj3mkdic include sj3lib +) +target_link_libraries(sj3mkdic + sj3lib +) diff --git a/sj3mkdic/cnvhinsi.c b/sj3mkdic/cnvhinsi.c index f8e2779..d6a5c1c 100644 --- a/sj3mkdic/cnvhinsi.c +++ b/sj3mkdic/cnvhinsi.c @@ -38,7 +38,6 @@ #include #include "dicttool.h" - struct gram_code { char *name; int code; diff --git a/include/dicttool.h b/sj3mkdic/dicttool.h similarity index 100% rename from include/dicttool.h rename to sj3mkdic/dicttool.h diff --git a/sj3mkdic/makeseg.c b/sj3mkdic/makeseg.c index c639bad..2d53c0b 100644 --- a/sj3mkdic/makeseg.c +++ b/sj3mkdic/makeseg.c @@ -43,7 +43,7 @@ #include #include #include "sj_struct.h" -#include "../../include/Dict.h" +#include "Dict.h" #include "dicttool.h" extern HindoRec *askknj[];