Commit 153d5dcf authored by Mike Kremer's avatar Mike Kremer

Copy doc if build on mac

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@356 fdac6126-5c0c-442c-9429-916003d36597
parent 084a7a28
...@@ -129,7 +129,7 @@ if (WIN32) ...@@ -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 () ...@@ -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)
...@@ -184,4 +193,4 @@ if (EXISTS "${CMAKE_BINARY_DIR}/CPackSourceConfig.cmake") ...@@ -184,4 +193,4 @@ if (EXISTS "${CMAKE_BINARY_DIR}/CPackSourceConfig.cmake")
add_custom_target (PACKAGE_SOURCE add_custom_target (PACKAGE_SOURCE
${CMAKE_CPACK_COMMAND} --config "${CMAKE_BINARY_DIR}/CPackSourceConfig.cmake" ${CMAKE_CPACK_COMMAND} --config "${CMAKE_BINARY_DIR}/CPackSourceConfig.cmake"
) )
endif () endif ()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment