[mlpack-git] master: Fix #229. (c0a1500)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Tue Dec 22 23:26:50 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/977afbec0648056124dcb206e0bf972a161d9b51...c0a1500de16d920eb0689e8c052e1aa7e1375c38
>---------------------------------------------------------------
commit c0a1500de16d920eb0689e8c052e1aa7e1375c38
Author: ryan <ryan at ratml.org>
Date: Tue Dec 22 23:26:23 2015 -0500
Fix #229.
>---------------------------------------------------------------
c0a1500de16d920eb0689e8c052e1aa7e1375c38
CMakeLists.txt | 40 ++++++++++++++++++----
src/mlpack/core.hpp | 37 +++++++++++++++++---
src/mlpack/methods/adaboost/CMakeLists.txt | 8 ++---
src/mlpack/methods/cf/CMakeLists.txt | 6 ++--
src/mlpack/methods/decision_stump/CMakeLists.txt | 7 ++--
src/mlpack/methods/det/CMakeLists.txt | 6 ++--
src/mlpack/methods/emst/CMakeLists.txt | 6 ++--
src/mlpack/methods/fastmks/CMakeLists.txt | 7 ++--
src/mlpack/methods/gmm/CMakeLists.txt | 14 ++++----
src/mlpack/methods/hmm/CMakeLists.txt | 22 +++++++-----
src/mlpack/methods/kernel_pca/CMakeLists.txt | 6 ++--
src/mlpack/methods/kmeans/CMakeLists.txt | 6 ++--
src/mlpack/methods/lars/CMakeLists.txt | 6 ++--
.../methods/linear_regression/CMakeLists.txt | 6 ++--
.../methods/local_coordinate_coding/CMakeLists.txt | 7 ++--
.../methods/logistic_regression/CMakeLists.txt | 6 ++--
src/mlpack/methods/lsh/CMakeLists.txt | 7 ++--
src/mlpack/methods/mean_shift/CMakeLists.txt | 6 ++--
src/mlpack/methods/naive_bayes/CMakeLists.txt | 6 ++--
src/mlpack/methods/nca/CMakeLists.txt | 6 ++--
src/mlpack/methods/neighbor_search/CMakeLists.txt | 10 +++---
src/mlpack/methods/nmf/CMakeLists.txt | 6 ++--
src/mlpack/methods/pca/CMakeLists.txt | 6 ++--
src/mlpack/methods/perceptron/CMakeLists.txt | 6 ++--
src/mlpack/methods/radical/CMakeLists.txt | 6 ++--
src/mlpack/methods/range_search/CMakeLists.txt | 6 ++--
src/mlpack/methods/rann/CMakeLists.txt | 7 ++--
.../methods/softmax_regression/CMakeLists.txt | 6 ++--
src/mlpack/methods/sparse_coding/CMakeLists.txt | 6 ++--
29 files changed, 163 insertions(+), 111 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 62fafc6..d2cae53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,7 +64,7 @@ endif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# Debugging CFLAGS. Turn optimizations off; turn debugging symbols on.
if(DEBUG)
add_definitions(-DDEBUG)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -ftemplate-backtrace-limit=0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -O0")
else()
add_definitions(-DARMA_NO_DEBUG)
@@ -334,11 +334,39 @@ if (UNIX)
WORKING_DIRECTORY
${CMAKE_BINARY_DIR}/bin
DEPENDS
- adaboost allkfn allknn allkrann cf decision_stump det emst fastmks
- gmm_train gmm_probability gmm_generate hmm_generate hmm_loglik
- hmm_train hmm_viterbi kernel_pca kmeans lars linear_regression
- local_coordinate_coding logistic_regression lsh mean_shift nbc nca nmf
- pca perceptron radical range_search softmax_regression sparse_coding
+ mlpack_adaboost
+ mlpack_allkfn
+ mlpack_allknn
+ mlpack_allkrann
+ mlpack_cf
+ mlpack_decision_stump
+ mlpack_det
+ mlpack_emst
+ mlpack_fastmks
+ mlpack_gmm_train
+ mlpack_gmm_probability
+ mlpack_gmm_generate
+ mlpack_hmm_generate
+ mlpack_hmm_loglik
+ mlpack_hmm_train
+ mlpack_hmm_viterbi
+ mlpack_kernel_pca
+ mlpack_kmeans
+ mlpack_lars
+ mlpack_linear_regression
+ mlpack_local_coordinate_coding
+ mlpack_logistic_regression
+ mlpack_lsh
+ mlpack_mean_shift
+ mlpack_nbc
+ mlpack_nca
+ mlpack_nmf
+ mlpack_pca
+ mlpack_perceptron
+ mlpack_radical
+ mlpack_range_search
+ mlpack_softmax_regression
+ mlpack_sparse_coding
COMMENT "Generating man pages from built executables."
)
diff --git a/src/mlpack/core.hpp b/src/mlpack/core.hpp
index ad0fac4..61c2f30 100644
--- a/src/mlpack/core.hpp
+++ b/src/mlpack/core.hpp
@@ -49,11 +49,38 @@
*
* A full list of executables is given below:
*
- * adaboost, allkfn, allknn, allkrann, cf, decision_stump, det, emst, fastmks,
- * gmm_train, gmm_generate, gmm_probability, hmm_train, hmm_loglik, hmm_viterbi,
- * hmm_generate, kernel_pca, kmeans, lars, linear_regression,
- * local_coordinate_coding, logistic_regression, lsh, mean_shift, nbc, nca, pca,
- * perceptron, radical, range_search, softmax_regression, sparse_coding
+ * - mlpack_adaboost
+ * - mlpack_allkfn
+ * - mlpack_allknn
+ * - mlpack_allkrann
+ * - mlpack_cf
+ * - mlpack_decision_stump
+ * - mlpack_det
+ * - mlpack_emst
+ * - mlpack_fastmks
+ * - mlpack_gmm_train
+ * - mlpack_gmm_generate
+ * - mlpack_gmm_probability
+ * - mlpack_hmm_train
+ * - mlpack_hmm_loglik
+ * - mlpack_hmm_viterbi
+ * - mlpack_hmm_generate
+ * - mlpack_kernel_pca
+ * - mlpack_kmeans
+ * - mlpack_lars
+ * - mlpack_linear_regression
+ * - mlpack_local_coordinate_coding
+ * - mlpack_logistic_regression
+ * - mlpack_lsh
+ * - mlpack_mean_shift
+ * - mlpack_nbc
+ * - mlpack_nca
+ * - mlpack_pca
+ * - mlpack_perceptron
+ * - mlpack_radical
+ * - mlpack_range_search
+ * - mlpack_softmax_regression
+ * - mlpack_sparse_coding
*
* @section tutorial Tutorials
*
diff --git a/src/mlpack/methods/adaboost/CMakeLists.txt b/src/mlpack/methods/adaboost/CMakeLists.txt
index 1320b9d..40f7977 100644
--- a/src/mlpack/methods/adaboost/CMakeLists.txt
+++ b/src/mlpack/methods/adaboost/CMakeLists.txt
@@ -16,12 +16,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-
-add_executable(adaboost
+add_executable(mlpack_adaboost
adaboost_main.cpp
)
-target_link_libraries(adaboost
+target_link_libraries(mlpack_adaboost
mlpack
)
-
-install(TARGETS adaboost RUNTIME DESTINATION bin)
+install(TARGETS mlpack_adaboost RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/cf/CMakeLists.txt b/src/mlpack/methods/cf/CMakeLists.txt
index a758136..d1adfae 100644
--- a/src/mlpack/methods/cf/CMakeLists.txt
+++ b/src/mlpack/methods/cf/CMakeLists.txt
@@ -17,10 +17,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(cf
+add_executable(mlpack_cf
cf_main.cpp
)
-target_link_libraries(cf
+target_link_libraries(mlpack_cf
mlpack
)
-install(TARGETS cf RUNTIME DESTINATION bin)
+install(TARGETS mlpack_cf RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/decision_stump/CMakeLists.txt b/src/mlpack/methods/decision_stump/CMakeLists.txt
index 3c811b8..ab53805 100644
--- a/src/mlpack/methods/decision_stump/CMakeLists.txt
+++ b/src/mlpack/methods/decision_stump/CMakeLists.txt
@@ -16,11 +16,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(decision_stump
+add_executable(mlpack_decision_stump
decision_stump_main.cpp
)
-target_link_libraries(decision_stump
+target_link_libraries(mlpack_decision_stump
mlpack
)
-
-install(TARGETS decision_stump RUNTIME DESTINATION bin)
+install(TARGETS mlpack_decision_stump RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/det/CMakeLists.txt b/src/mlpack/methods/det/CMakeLists.txt
index a75b00a..098cb5d 100644
--- a/src/mlpack/methods/det/CMakeLists.txt
+++ b/src/mlpack/methods/det/CMakeLists.txt
@@ -20,11 +20,11 @@ endforeach()
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# executable
-add_executable(det
+add_executable(mlpack_det
det_main.cpp
)
# link dependencies of executable
-target_link_libraries(det
+target_link_libraries(mlpack_det
mlpack
)
-install(TARGETS det RUNTIME DESTINATION bin)
+install(TARGETS mlpack_det RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/emst/CMakeLists.txt b/src/mlpack/methods/emst/CMakeLists.txt
index 928c82a..f11585e 100644
--- a/src/mlpack/methods/emst/CMakeLists.txt
+++ b/src/mlpack/methods/emst/CMakeLists.txt
@@ -21,10 +21,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(emst
+add_executable(mlpack_emst
emst_main.cpp
)
-target_link_libraries(emst
+target_link_libraries(mlpack_emst
mlpack
)
-install(TARGETS emst RUNTIME DESTINATION bin)
+install(TARGETS mlpack_emst RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/fastmks/CMakeLists.txt b/src/mlpack/methods/fastmks/CMakeLists.txt
index 2472e9b..e5a9dba 100644
--- a/src/mlpack/methods/fastmks/CMakeLists.txt
+++ b/src/mlpack/methods/fastmks/CMakeLists.txt
@@ -19,11 +19,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(fastmks
+add_executable(mlpack_fastmks
fastmks_main.cpp
)
-target_link_libraries(fastmks
+target_link_libraries(mlpack_fastmks
mlpack
)
-
-install(TARGETS fastmks RUNTIME DESTINATION bin)
+install(TARGETS mlpack_fastmks RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/gmm/CMakeLists.txt b/src/mlpack/methods/gmm/CMakeLists.txt
index 24d027b..bf537af 100644
--- a/src/mlpack/methods/gmm/CMakeLists.txt
+++ b/src/mlpack/methods/gmm/CMakeLists.txt
@@ -22,27 +22,27 @@ endforeach()
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# main executable, gmm
-add_executable(gmm_train
+add_executable(mlpack_gmm_train
gmm_train_main.cpp
)
# link dependencies of gmm
-target_link_libraries(gmm_train
+target_link_libraries(mlpack_gmm_train
mlpack
)
-add_executable(gmm_generate
+add_executable(mlpack_gmm_generate
gmm_generate_main.cpp
)
-target_link_libraries(gmm_generate
+target_link_libraries(mlpack_gmm_generate
mlpack
)
-add_executable(gmm_probability
+add_executable(mlpack_gmm_probability
gmm_probability_main.cpp
)
-target_link_libraries(gmm_probability
+target_link_libraries(mlpack_gmm_probability
mlpack
)
-install(TARGETS gmm_train gmm_generate gmm_probability RUNTIME DESTINATION bin)
+install(TARGETS mlpack_gmm_train mlpack_gmm_generate mlpack_gmm_probability RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/hmm/CMakeLists.txt b/src/mlpack/methods/hmm/CMakeLists.txt
index fd52249..1db9694 100644
--- a/src/mlpack/methods/hmm/CMakeLists.txt
+++ b/src/mlpack/methods/hmm/CMakeLists.txt
@@ -18,33 +18,37 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(hmm_train
+add_executable(mlpack_hmm_train
hmm_train_main.cpp
)
-target_link_libraries(hmm_train
+target_link_libraries(mlpack_hmm_train
mlpack
)
-add_executable(hmm_loglik
+add_executable(mlpack_hmm_loglik
hmm_loglik_main.cpp
)
-target_link_libraries(hmm_loglik
+target_link_libraries(mlpack_hmm_loglik
mlpack
)
-add_executable(hmm_viterbi
+add_executable(mlpack_hmm_viterbi
hmm_viterbi_main.cpp
)
-target_link_libraries(hmm_viterbi
+target_link_libraries(mlpack_hmm_viterbi
mlpack
)
-add_executable(hmm_generate
+add_executable(mlpack_hmm_generate
hmm_generate_main.cpp
)
-target_link_libraries(hmm_generate
+target_link_libraries(mlpack_hmm_generate
mlpack
)
-install(TARGETS hmm_train hmm_loglik hmm_viterbi hmm_generate
+install(TARGETS
+ mlpack_hmm_train
+ mlpack_hmm_loglik
+ mlpack_hmm_viterbi
+ mlpack_hmm_generate
RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/kernel_pca/CMakeLists.txt b/src/mlpack/methods/kernel_pca/CMakeLists.txt
index 4b5fcb5..7fdd3aa 100644
--- a/src/mlpack/methods/kernel_pca/CMakeLists.txt
+++ b/src/mlpack/methods/kernel_pca/CMakeLists.txt
@@ -16,10 +16,10 @@ set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
add_subdirectory(kernel_rules)
-add_executable(kernel_pca
+add_executable(mlpack_kernel_pca
kernel_pca_main.cpp
)
-target_link_libraries(kernel_pca
+target_link_libraries(mlpack_kernel_pca
mlpack
)
-install(TARGETS kernel_pca RUNTIME DESTINATION bin)
+install(TARGETS mlpack_kernel_pca RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/kmeans/CMakeLists.txt b/src/mlpack/methods/kmeans/CMakeLists.txt
index 1cc3d94..6116160 100644
--- a/src/mlpack/methods/kmeans/CMakeLists.txt
+++ b/src/mlpack/methods/kmeans/CMakeLists.txt
@@ -37,10 +37,10 @@ endforeach()
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# The main K-Means executable.
-add_executable(kmeans
+add_executable(mlpack_kmeans
kmeans_main.cpp
)
-target_link_libraries(kmeans
+target_link_libraries(mlpack_kmeans
mlpack
)
-install(TARGETS kmeans RUNTIME DESTINATION bin)
+install(TARGETS mlpack_kmeans RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/lars/CMakeLists.txt b/src/mlpack/methods/lars/CMakeLists.txt
index b876c07..ffdf93e 100644
--- a/src/mlpack/methods/lars/CMakeLists.txt
+++ b/src/mlpack/methods/lars/CMakeLists.txt
@@ -14,10 +14,10 @@ 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)
-add_executable(lars
+add_executable(mlpack_lars
lars_main.cpp
)
-target_link_libraries(lars
+target_link_libraries(mlpack_lars
mlpack
)
-install(TARGETS lars RUNTIME DESTINATION bin)
+install(TARGETS mlpack_lars RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/linear_regression/CMakeLists.txt b/src/mlpack/methods/linear_regression/CMakeLists.txt
index 6d76b0e..6c5fadc 100644
--- a/src/mlpack/methods/linear_regression/CMakeLists.txt
+++ b/src/mlpack/methods/linear_regression/CMakeLists.txt
@@ -15,10 +15,10 @@ endforeach()
# the parent scope)
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(linear_regression
+add_executable(mlpack_linear_regression
linear_regression_main.cpp
)
-target_link_libraries(linear_regression
+target_link_libraries(mlpack_linear_regression
mlpack
)
-install(TARGETS linear_regression RUNTIME DESTINATION bin)
+install(TARGETS mlpack_linear_regression RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt b/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt
index 99b58e8..f15452e 100644
--- a/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt
+++ b/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt
@@ -18,11 +18,10 @@ 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)
-add_executable(local_coordinate_coding
+add_executable(mlpack_local_coordinate_coding
lcc_main.cpp
)
-
-target_link_libraries(local_coordinate_coding
+target_link_libraries(mlpack_local_coordinate_coding
mlpack
)
-install(TARGETS local_coordinate_coding RUNTIME DESTINATION bin)
+install(TARGETS mlpack_local_coordinate_coding RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/logistic_regression/CMakeLists.txt b/src/mlpack/methods/logistic_regression/CMakeLists.txt
index d1477ff..74e26c5 100644
--- a/src/mlpack/methods/logistic_regression/CMakeLists.txt
+++ b/src/mlpack/methods/logistic_regression/CMakeLists.txt
@@ -17,10 +17,10 @@ endforeach()
# the parent scope)
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(logistic_regression
+add_executable(mlpack_logistic_regression
logistic_regression_main.cpp
)
-target_link_libraries(logistic_regression
+target_link_libraries(mlpack_logistic_regression
mlpack
)
-install(TARGETS logistic_regression RUNTIME DESTINATION bin)
+install(TARGETS mlpack_logistic_regression RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/lsh/CMakeLists.txt b/src/mlpack/methods/lsh/CMakeLists.txt
index a8e1239..f0055a6 100644
--- a/src/mlpack/methods/lsh/CMakeLists.txt
+++ b/src/mlpack/methods/lsh/CMakeLists.txt
@@ -17,11 +17,10 @@ set(MLPACK_CONTRIB_SRCS ${MLPACK_CONTRIB_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# The code to compute the approximate neighbor for the given query and reference
# sets with p-stable LSH.
-add_executable(lsh
+add_executable(mlpack_lsh
lsh_main.cpp
)
-target_link_libraries(lsh
+target_link_libraries(mlpack_lsh
mlpack
)
-
-install(TARGETS lsh RUNTIME DESTINATION bin)
+install(TARGETS mlpack_lsh RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/mean_shift/CMakeLists.txt b/src/mlpack/methods/mean_shift/CMakeLists.txt
index cb42e52..e444604 100644
--- a/src/mlpack/methods/mean_shift/CMakeLists.txt
+++ b/src/mlpack/methods/mean_shift/CMakeLists.txt
@@ -15,10 +15,10 @@ endforeach()
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# The main K-Means executable.
-add_executable(mean_shift
+add_executable(mlpack_mean_shift
mean_shift_main.cpp
)
-target_link_libraries(mean_shift
+target_link_libraries(mlpack_mean_shift
mlpack
)
-install(TARGETS mean_shift RUNTIME DESTINATION bin)
+install(TARGETS mlpack_mean_shift RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/naive_bayes/CMakeLists.txt b/src/mlpack/methods/naive_bayes/CMakeLists.txt
index 726b28b..5afe319 100644
--- a/src/mlpack/methods/naive_bayes/CMakeLists.txt
+++ b/src/mlpack/methods/naive_bayes/CMakeLists.txt
@@ -14,10 +14,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(nbc
+add_executable(mlpack_nbc
nbc_main.cpp
)
-target_link_libraries(nbc
+target_link_libraries(mlpack_nbc
mlpack
)
-install(TARGETS nbc RUNTIME DESTINATION bin)
+install(TARGETS mlpack_nbc RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/nca/CMakeLists.txt b/src/mlpack/methods/nca/CMakeLists.txt
index 0b2777c..00a1fe2 100644
--- a/src/mlpack/methods/nca/CMakeLists.txt
+++ b/src/mlpack/methods/nca/CMakeLists.txt
@@ -16,10 +16,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(nca
+add_executable(mlpack_nca
nca_main.cpp
)
-target_link_libraries(nca
+target_link_libraries(mlpack_nca
mlpack
)
-install(TARGETS nca RUNTIME DESTINATION bin)
+install(TARGETS mlpack_nca RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/neighbor_search/CMakeLists.txt b/src/mlpack/methods/neighbor_search/CMakeLists.txt
index 2f8d275..8b85d11 100644
--- a/src/mlpack/methods/neighbor_search/CMakeLists.txt
+++ b/src/mlpack/methods/neighbor_search/CMakeLists.txt
@@ -29,18 +29,18 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(allknn
+add_executable(mlpack_allknn
allknn_main.cpp
)
-target_link_libraries(allknn
+target_link_libraries(mlpack_allknn
mlpack
)
-add_executable(allkfn
+add_executable(mlpack_allkfn
allkfn_main.cpp
)
-target_link_libraries(allkfn
+target_link_libraries(mlpack_allkfn
mlpack
)
-install(TARGETS allknn allkfn RUNTIME DESTINATION bin)
+install(TARGETS mlpack_allknn mlpack_allkfn RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/nmf/CMakeLists.txt b/src/mlpack/methods/nmf/CMakeLists.txt
index b1c2b51..71a33ed 100644
--- a/src/mlpack/methods/nmf/CMakeLists.txt
+++ b/src/mlpack/methods/nmf/CMakeLists.txt
@@ -1,7 +1,7 @@
-add_executable(nmf
+add_executable(mlpack_nmf
nmf_main.cpp
)
-target_link_libraries(nmf
+target_link_libraries(mlpack_nmf
mlpack
)
-install(TARGETS nmf RUNTIME DESTINATION bin)
+install(TARGETS mlpack_nmf RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/pca/CMakeLists.txt b/src/mlpack/methods/pca/CMakeLists.txt
index 0a5665f..f9f18c1 100644
--- a/src/mlpack/methods/pca/CMakeLists.txt
+++ b/src/mlpack/methods/pca/CMakeLists.txt
@@ -14,10 +14,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(pca
+add_executable(mlpack_pca
pca_main.cpp
)
-target_link_libraries(pca
+target_link_libraries(mlpack_pca
mlpack
)
-install(TARGETS pca RUNTIME DESTINATION bin)
+install(TARGETS mlpack_pca RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/perceptron/CMakeLists.txt b/src/mlpack/methods/perceptron/CMakeLists.txt
index b31efce..4e31a38 100644
--- a/src/mlpack/methods/perceptron/CMakeLists.txt
+++ b/src/mlpack/methods/perceptron/CMakeLists.txt
@@ -19,11 +19,11 @@ set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
add_subdirectory(initialization_methods)
add_subdirectory(learning_policies)
-add_executable(perceptron
+add_executable(mlpack_perceptron
perceptron_main.cpp
)
-target_link_libraries(perceptron
+target_link_libraries(mlpack_perceptron
mlpack
)
-install(TARGETS perceptron RUNTIME DESTINATION bin)
+install(TARGETS mlpack_perceptron RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/radical/CMakeLists.txt b/src/mlpack/methods/radical/CMakeLists.txt
index 4c7ad1e..f408017 100644
--- a/src/mlpack/methods/radical/CMakeLists.txt
+++ b/src/mlpack/methods/radical/CMakeLists.txt
@@ -13,10 +13,10 @@ 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)
-add_executable(radical
+add_executable(mlpack_radical
radical_main.cpp
)
-target_link_libraries(radical
+target_link_libraries(mlpack_radical
mlpack
)
-install(TARGETS radical RUNTIME DESTINATION bin)
+install(TARGETS mlpack_radical RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/range_search/CMakeLists.txt b/src/mlpack/methods/range_search/CMakeLists.txt
index 171dd86..aebb189 100644
--- a/src/mlpack/methods/range_search/CMakeLists.txt
+++ b/src/mlpack/methods/range_search/CMakeLists.txt
@@ -20,10 +20,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(range_search
+add_executable(mlpack_range_search
range_search_main.cpp
)
-target_link_libraries(range_search
+target_link_libraries(mlpack_range_search
mlpack
)
-install(TARGETS range_search RUNTIME DESTINATION bin)
+install(TARGETS mlpack_range_search RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/rann/CMakeLists.txt b/src/mlpack/methods/rann/CMakeLists.txt
index f325954..88ef081 100644
--- a/src/mlpack/methods/rann/CMakeLists.txt
+++ b/src/mlpack/methods/rann/CMakeLists.txt
@@ -36,11 +36,10 @@ set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
# The code to compute the rank-approximate neighbor
# for the given query and reference sets
-add_executable(allkrann
+add_executable(mlpack_allkrann
allkrann_main.cpp
)
-target_link_libraries(allkrann
+target_link_libraries(mlpack_allkrann
mlpack
)
-
-install(TARGETS allkrann RUNTIME DESTINATION bin)
+install(TARGETS mlpack_allkrann RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/softmax_regression/CMakeLists.txt b/src/mlpack/methods/softmax_regression/CMakeLists.txt
index 2b9e7f8..4525e69 100644
--- a/src/mlpack/methods/softmax_regression/CMakeLists.txt
+++ b/src/mlpack/methods/softmax_regression/CMakeLists.txt
@@ -16,10 +16,10 @@ endforeach()
# the parent scope).
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
-add_executable(softmax_regression
+add_executable(mlpack_softmax_regression
softmax_regression_main.cpp
)
-target_link_libraries(softmax_regression
+target_link_libraries(mlpack_softmax_regression
mlpack
)
-install(TARGETS softmax_regression RUNTIME DESTINATION bin)
+install(TARGETS mlpack_softmax_regression RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/sparse_coding/CMakeLists.txt b/src/mlpack/methods/sparse_coding/CMakeLists.txt
index 79b6b07..a04a5ee 100644
--- a/src/mlpack/methods/sparse_coding/CMakeLists.txt
+++ b/src/mlpack/methods/sparse_coding/CMakeLists.txt
@@ -18,10 +18,10 @@ 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)
-add_executable(sparse_coding
+add_executable(mlpack_sparse_coding
sparse_coding_main.cpp
)
-target_link_libraries(sparse_coding
+target_link_libraries(mlpack_sparse_coding
mlpack
)
-install(TARGETS sparse_coding RUNTIME DESTINATION bin)
+install(TARGETS mlpack_sparse_coding RUNTIME DESTINATION bin)
More information about the mlpack-git
mailing list