[mlpack-svn] r12708 - mlpack/trunk/src/mlpack/methods/maxip

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu May 17 12:55:35 EDT 2012


Author: rcurtin
Date: 2012-05-17 12:55:35 -0400 (Thu, 17 May 2012)
New Revision: 12708

Added:
   mlpack/trunk/src/mlpack/methods/maxip/CMakeLists.txt
Log:
Add CMake configuration so MaxIP gets compiled.


Added: mlpack/trunk/src/mlpack/methods/maxip/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/methods/maxip/CMakeLists.txt	                        (rev 0)
+++ mlpack/trunk/src/mlpack/methods/maxip/CMakeLists.txt	2012-05-17 16:55:35 UTC (rev 12708)
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 2.8)
+
+# Define the files we need to compile.
+# Anything not in this list will not be compiled into MLPACK.
+set(SOURCES
+  ip_metric.hpp
+  ip_metric_impl.hpp
+  max_ip.hpp
+  max_ip_impl.hpp
+  max_ip_rules.hpp
+  max_ip_rules_impl.hpp
+)
+
+# Add directory name to sources.
+set(DIR_SRCS)
+foreach(file ${SOURCES})
+  set(DIR_SRCS ${DIR_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
+endforeach()
+# Append sources (with directory name) to list of all MLPACK sources (used at
+# the parent scope).
+set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)




More information about the mlpack-svn mailing list