[mlpack-svn] r12191 - mlpack/trunk/src/mlpack/methods/det
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Apr 4 11:55:30 EDT 2012
Author: pram
Date: 2012-04-04 11:55:30 -0400 (Wed, 04 Apr 2012)
New Revision: 12191
Added:
mlpack/trunk/src/mlpack/methods/det/CMakeLists.txt
Log:
DET CMakeLists added
Added: mlpack/trunk/src/mlpack/methods/det/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/methods/det/CMakeLists.txt (rev 0)
+++ mlpack/trunk/src/mlpack/methods/det/CMakeLists.txt 2012-04-04 15:55:30 UTC (rev 12191)
@@ -0,0 +1,32 @@
+cmake_minimum_required(VERSION 2.8)
+
+# Define the files we need to compile
+# Anything not in this list will not be compiled into the output library
+# Do not include test programs here
+set(SOURCES
+
+ # the DET class
+ dtree.hpp
+ dtree_impl.hpp
+
+ # the util file
+ dt_utils.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_CONTRIB_SRCS ${MLPACK_CONTRIB_SRCS} ${DIR_SRCS} PARENT_SCOPE)
+
+# executable
+add_executable(dt_main
+ dt_main.cpp
+)
+# link dependencies of executable
+target_link_libraries(dt_main
+ ${MLPACK_LIBRARY}
+ contrib_pram
+)
More information about the mlpack-svn
mailing list