[mlpack-svn] r13707 - mlpack/trunk/src/mlpack/bindings/matlab/emst

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Oct 15 17:56:33 EDT 2012


Author: rcurtin
Date: 2012-10-15 17:56:33 -0400 (Mon, 15 Oct 2012)
New Revision: 13707

Added:
   mlpack/trunk/src/mlpack/bindings/matlab/emst/CMakeLists.txt
Log:
Build rules for the EMST MATLAB mex binding.


Added: mlpack/trunk/src/mlpack/bindings/matlab/emst/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/bindings/matlab/emst/CMakeLists.txt	                        (rev 0)
+++ mlpack/trunk/src/mlpack/bindings/matlab/emst/CMakeLists.txt	2012-10-15 21:56:33 UTC (rev 13707)
@@ -0,0 +1,23 @@
+# Simple rules for building mex file.  The _mex suffix is necessary to avoid
+# target name conflicts.
+add_library(emst_mex SHARED
+  emst.cpp
+)
+target_link_libraries(emst_mex
+  mlpack
+  ${LIBXML2_LIBRARIES}
+)
+
+# Change the name of the output library.
+set_target_properties(emst_mex
+  PROPERTIES OUTPUT_NAME emst
+)
+
+# Installation rule.  Install both the mex and the MATLAB file.
+install(TARGETS emst_mex
+  LIBRARY DESTINATION "${MATLAB_TOOLBOX_DIR}/mlpack/"
+)
+install(FILES
+  emst.m
+  DESTINATION "${MATLAB_TOOLBOX_DIR}/mlpack/"
+)




More information about the mlpack-svn mailing list