Copy doc if build on mac

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@356 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Mike Kremer
2010-12-21 09:47:30 +00:00
parent 084a7a289a
commit 153d5dcf33

View File

@@ -129,7 +129,7 @@ if (WIN32)
endif() endif()
# copy the documentation if it exists # copy the documentation if it exists
IF ( WIN32) IF ( WIN32 )
if (EXISTS ${CMAKE_BINARY_DIR}/Build/Doc) if (EXISTS ${CMAKE_BINARY_DIR}/Build/Doc)
install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/Doc install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/Doc
DESTINATION ./ DESTINATION ./
@@ -171,6 +171,15 @@ else ()
include (InstallRequiredSystemLibraries) include (InstallRequiredSystemLibraries)
endif () endif ()
if (APPLE)
if (EXISTS ${CMAKE_BINARY_DIR}/Build/share/OpenMesh/Doc)
install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/share/OpenMesh/Doc
DESTINATION ./
COMPONENT Applications
)
endif()
endif()
include (CPack) include (CPack)