diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d3b74d..4cfadcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,12 +103,14 @@ SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) SET(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "NFC Library") SET(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "Example Applications") SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "Development Headers") -SET(CPACK_COMPONENT_MANUALS_DISPLAY_NAME "Example Applications Manuals") +IF(NOT MSVC) + SET(CPACK_COMPONENT_MANUALS_DISPLAY_NAME "Example Applications Manuals") + SET(CPACK_COMPONENT_MANUALS_DISABLED TRUE) + SET(CPACK_COMPONENT_MANUALS_DEPENDS examples) +ENDIF(NOT MSVC) SET(CPACK_COMPONENT_HEADERS_DISABLED TRUE) -SET(CPACK_COMPONENT_MANUALS_DISABLED TRUE) SET(CPACK_COMPONENT_HEADERS_DEPENDS libraries) SET(CPACK_COMPONENT_EXAMPLES_DEPENDS libraries) -SET(CPACK_COMPONENT_MANUALS_DEPENDS examples) # Source Package IF(MSVC) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 1dffda8..8098be0 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -12,6 +12,8 @@ FOREACH(source ${EXAMPLES-SOURCES}) INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples) ENDFOREACH(source) -# Manuals for the examples -FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1") -INSTALL(FILES ${manuals} DESTINATION ${SHARE_INSTALL_PREFIX}/man/man1 COMPONENT manuals) +IF(NOT MSVC) + # Manuals for the examples + FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1") + INSTALL(FILES ${manuals} DESTINATION ${SHARE_INSTALL_PREFIX}/man/man1 COMPONENT manuals) +ENDIF(NOT MSVC)