diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-11 10:09:37 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-11 10:09:37 -0800 |
commit | d44720f4c775fd3f83adb30741e202f40581f097 (patch) | |
tree | 6ad30d2b8c2ae807beabaae5f348c0a5619f3048 | |
parent | c6c5c03a113845af99397d92c95d384db1fe1310 (diff) |
Small reorganization of man/CMakeLists.txt.
Don't add install targets if on Windows.
-rw-r--r-- | man/CMakeLists.txt | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 9b6956a..1540812 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,11 +1,12 @@ -set(PYTHON python) -set(LIBRARY "libcmark") - if (NOT MSVC) + set(PYTHON python) + set(LIBRARY "libcmark") + add_custom_target(man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.1 ) + add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 DEPENDS ${CMAKE_SOURCE_DIR}/src/cmark.h @@ -14,6 +15,7 @@ if (NOT MSVC) ${CMAKE_SOURCE_DIR}/src/cmark.h > ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 ) + add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.1 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 @@ -21,10 +23,10 @@ if (NOT MSVC) ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 ${CMAKE_CURRENT_BINARY_DIR}/cmark.1 ) -endif(NOT MSVC) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1 - DESTINATION share/man/man1) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1 + DESTINATION share/man/man1) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 - DESTINATION share/man/man3) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 + DESTINATION share/man/man3) +endif(NOT MSVC)
\ No newline at end of file |