summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPino Toscano <pino@draco.(none)>2008-01-30 23:12:03 +0100
committerPino Toscano <pino@draco.(none)>2008-01-30 23:12:03 +0100
commit37d2055137c310ceb217164a76814b188be3b1b2 (patch)
tree132ddf267c82925bed25117cd2e21ccf05358190 /utils
parent1ea831d3eee6eda35fadfb3c75962a0c708e6c7b (diff)
Introduce the CMake-based build system.
Mostly works nicely as the autotools, and it mimics (almost) all the autotools behaviours. Copied some scripts from the KDE cmake scripts (BSD-licensed). TODO: gtk-doc.
Diffstat (limited to 'utils')
-rw-r--r--utils/CMakeLists.txt84
1 files changed, 84 insertions, 0 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
new file mode 100644
index 00000000..8f8b4181
--- /dev/null
+++ b/utils/CMakeLists.txt
@@ -0,0 +1,84 @@
+
+set(common_srcs
+ parseargs.c
+)
+set(common_libs
+ poppler
+)
+if (FONTCONFIG_FOUND)
+ set(common_libs ${common_libs} ${FONTCONFIG_LIBRARIES})
+endif (FONTCONFIG_FOUND)
+
+if (ENABLE_SPLASH)
+ # pdftoppm
+ set(pdftoppm_SOURCES ${common_srcs}
+ pdftoppm.cc
+ )
+ add_executable(pdftoppm ${pdftoppm_SOURCES})
+ target_link_libraries(pdftoppm ${common_libs})
+ install(TARGETS pdftoppm DESTINATION bin)
+endif (ENABLE_SPLASH)
+
+# pdffonts
+set(pdffonts_SOURCES ${common_srcs}
+ pdffonts.cc
+)
+add_executable(pdffonts ${pdffonts_SOURCES})
+target_link_libraries(pdffonts ${common_libs})
+install(TARGETS pdffonts DESTINATION bin)
+
+# pdfimages
+set(pdfimages_SOURCES ${common_srcs}
+ pdfimages.cc
+ ImageOutputDev.cc
+ ImageOutputDev.h
+)
+add_executable(pdfimages ${pdfimages_SOURCES})
+target_link_libraries(pdfimages ${common_libs})
+install(TARGETS pdfimages DESTINATION bin)
+
+# pdfinfo
+set(pdfinfo_SOURCES ${common_srcs}
+ pdfinfo.cc
+)
+add_executable(pdfinfo ${pdfinfo_SOURCES})
+target_link_libraries(pdfinfo ${common_libs})
+install(TARGETS pdfinfo DESTINATION bin)
+
+# pdftops
+set(pdftops_SOURCES ${common_srcs}
+ pdftops.cc
+)
+add_executable(pdftops ${pdftops_SOURCES})
+target_link_libraries(pdftops ${common_libs})
+install(TARGETS pdftops DESTINATION bin)
+
+# pdftotext
+set(pdftotext_SOURCES ${common_srcs}
+ pdftotext.cc
+)
+add_executable(pdftotext ${pdftotext_SOURCES})
+target_link_libraries(pdftotext ${common_libs})
+install(TARGETS pdftotext DESTINATION bin)
+
+# pdftohtml
+set(pdftohtml_SOURCES ${common_srcs}
+ pdftohtml.cc
+ HtmlFonts.cc
+ HtmlLinks.cc
+ HtmlOutputDev.cc
+)
+add_executable(pdftohtml ${pdftohtml_SOURCES})
+target_link_libraries(pdftohtml ${common_libs})
+install(TARGETS pdftohtml DESTINATION bin)
+
+if (ENABLE_ABIWORD)
+ # pdftoabw
+ set(pdftoabw_SOURCES ${common_srcs}
+ pdftoabw.cc
+ )
+ add_executable(pdftoabw ${pdftoabw_SOURCES})
+ target_link_libraries(pdftoabw ${common_libs})
+ install(TARGETS pdftoabw DESTINATION bin)
+endif (ENABLE_ABIWORD)
+