[mlpack-git] master: 1 : change file name 2 : fix make file, should not add the cpp into SOURCES (2fc0278)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Mon Nov 16 10:08:34 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/9d882d9461a656dfec814b0ec7ae32bd4aebf8b2...7983dc9bfef684061f040667a69de75887cd2330
>---------------------------------------------------------------
commit 2fc0278cfe3671fb9d7f76b3988f951a31dd4a27
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date: Thu Oct 29 23:38:29 2015 +0800
1 : change file name
2 : fix make file, should not add the cpp into SOURCES
>---------------------------------------------------------------
2fc0278cfe3671fb9d7f76b3988f951a31dd4a27
src/mlpack/methods/softmax_regression/CMakeLists.txt | 9 ++++++++-
.../{softmax_main.cpp => softmax_regression_main.cpp} | 0
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/methods/softmax_regression/CMakeLists.txt b/src/mlpack/methods/softmax_regression/CMakeLists.txt
index b4941f7..2b9e7f8 100644
--- a/src/mlpack/methods/softmax_regression/CMakeLists.txt
+++ b/src/mlpack/methods/softmax_regression/CMakeLists.txt
@@ -5,7 +5,6 @@ set(SOURCES
softmax_regression_impl.hpp
softmax_regression_function.hpp
softmax_regression_function.cpp
- softmax_main.cpp
)
# Add directory name to sources.
@@ -16,3 +15,11 @@ 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(softmax_regression
+ softmax_regression_main.cpp
+)
+target_link_libraries(softmax_regression
+ mlpack
+)
+install(TARGETS softmax_regression RUNTIME DESTINATION bin)
diff --git a/src/mlpack/methods/softmax_regression/softmax_main.cpp b/src/mlpack/methods/softmax_regression/softmax_regression_main.cpp
similarity index 100%
rename from src/mlpack/methods/softmax_regression/softmax_main.cpp
rename to src/mlpack/methods/softmax_regression/softmax_regression_main.cpp
More information about the mlpack-git
mailing list