From 1da8dbdb0199323323061fb7a8089218a7228ae7 Mon Sep 17 00:00:00 2001 From: simon987 Date: Fri, 13 Nov 2020 12:58:40 -0500 Subject: [PATCH] Build as library --- .gitignore | 4 +++- CMakeLists.txt | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6daae44..03df695 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ *.o antiword +libantiword.a CMakeCache.txt CMakeFiles cmake_install.cmake .idea/ Makefile -*.cbp \ No newline at end of file +*.cbp +*.swp \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 1475567..6d9e002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,7 @@ set(CMAKE_C_STANDARD 11) project(antiword C) -add_executable(antiword - src/main_u.c +add_library(antiword src/asc85enc.c src/blocklist.c src/chartrans.c src/datalist.c src/depot.c src/dib2eps.c src/doclist.c src/fail.c src/finddata.c src/findtext.c src/fmt_text.c src/fontlist.c src/fonts.c src/fonts_u.c