Permalink
Browse files

Fixing cmake to not error when install does not find documentation

- Use OPTIONAL directive in cmake
- Add note about making doc to readme
  • Loading branch information...
1 parent d139c19 commit 418e8258dd1f67bdd5ad220037a9374d7c11e27e @aselle aselle committed Aug 26, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 README
  2. +2 −2 src/doc/CMakeLists.txt
View
1 README
@@ -10,6 +10,7 @@ $ cd SeExpr
$ mkdir build
$ cd build
$ cmake ../
+$ make doc # optional make documentation
$ make install
You can try the test application asciiGraph which is a simple
View
@@ -41,6 +41,6 @@ IF(DOXYGEN_FOUND)
add_dependencies(doc DOCUMENTED_FILES)
ADD_CUSTOM_TARGET(${HTML_TARGET} ALL /usr/bin/doxygen ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)
- INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/SeExpr )
- INSTALL( FILES userdoc.txt DESTINATION share/doc/SeExpr/ RENAME SeExpressions.html )
+ INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/SeExpr OPTIONAL )
+ INSTALL( FILES userdoc.txt DESTINATION share/doc/SeExpr/ RENAME SeExpressions.html )
ENDIF(DOXYGEN_FOUND)

0 comments on commit 418e825

Please sign in to comment.