summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)