summaryrefslogtreecommitdiffstats
path: root/tdemarkdown/md4c/md2html/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tdemarkdown/md4c/md2html/CMakeLists.txt')
-rw-r--r--tdemarkdown/md4c/md2html/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tdemarkdown/md4c/md2html/CMakeLists.txt b/tdemarkdown/md4c/md2html/CMakeLists.txt
new file mode 100644
index 000000000..14de6712e
--- /dev/null
+++ b/tdemarkdown/md4c/md2html/CMakeLists.txt
@@ -0,0 +1,22 @@
+
+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
+
+
+# Build rules for md2html command line utility
+
+include_directories("${PROJECT_SOURCE_DIR}/src")
+add_executable(md2html cmdline.c cmdline.h md2html.c)
+target_link_libraries(md2html md4c-html)
+
+
+# Install rules
+
+install(
+ TARGETS md2html
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+)
+install(FILES "md2html.1" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
+