[mlpack-svn] r11259 - mlpack/trunk

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jan 23 13:29:23 EST 2012


Author: rcurtin
Date: 2012-01-23 13:29:22 -0500 (Mon, 23 Jan 2012)
New Revision: 11259

Modified:
   mlpack/trunk/CMakeLists.txt
Log:
Rename project to 'mlpack' (so we install documentation to
/usr/share/doc/mlpack/ not /usr/share/doc/MLPACK/) and add installation rule for
generated HTML documentation (goes into /usr/share/doc/mlpack/html/).


Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt	2012-01-23 18:01:19 UTC (rev 11258)
+++ mlpack/trunk/CMakeLists.txt	2012-01-23 18:29:22 UTC (rev 11259)
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 2.8)
-project(MLPACK C CXX)
+project(mlpack C CXX)
 
 ## External Libraries
 #  ls /usr/share/cmake-2.6/Modules/Find* | \
@@ -127,4 +127,11 @@
         ${CMAKE_CURRENT_SOURCE_DIR}/doc ${CMAKE_BINARY_DIR}/doc
     COMMENT "Copying API documentation to build directory"
   )
+
+  # Add installation hook for documentation (only HTML)
+  include(GNUInstallDirs)
+  install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html
+    DESTINATION ${CMAKE_INSTALL_DOCDIR}
+    COMPONENT doc
+  )
 endif (DOXYGEN_FOUND)




More information about the mlpack-svn mailing list