summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-07 09:27:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-07 09:27:46 -0800
commit2e3ab1464f9e4e8b00ebb15ea0f5a0afd2df7263 (patch)
tree3adfb25e53b7a83c5845686b03e91d1cdf35c1b6
parent709c1385fea7b4aee3968fe80c58b87a294d8d8a (diff)
Removed old man/CMakeLists.txt.
-rw-r--r--CMakeLists.txt3
-rw-r--r--man/CMakeLists.txt3
-rw-r--r--src/CMakeLists.txt5
3 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20cd5da..88b1c81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,9 +90,6 @@ install(DIRECTORY include DESTINATION .
# COMPONENT devel)
add_subdirectory(src)
-add_subdirectory(man)
-
-include(InstallRequiredSystemLibraries)
set(CPACK_GENERATOR TGZ ZIP)
if(WIN32 AND NOT CYGWIN)
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
deleted file mode 100644
index 6b4b56f..0000000
--- a/man/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-if(UNIX)
- INSTALL(FILES man1/cmark.1 DESTINATION share/man/man1)
-endif(UNIX)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 55b5be1..b961ff7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -60,6 +60,11 @@ set_property(TARGET ${PROGRAM}
APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO)
endif(MSVC)
+
install(TARGETS ${PROGRAM} ${LIBRARY}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)
+
+if(UNIX)
+ INSTALL(FILES ../man/man1/cmark.1 DESTINATION share/man/man1)
+endif(UNIX)