forked from mlpack/mlpack
/
CMakeLists.txt
64 lines (61 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This macro adds a command-line executable with the given name. It assumes
# that the file with main() is in <name>_main.cpp, and produces an output
# program with the name mlpack_<name>.
macro (add_cli_executable name)
if (BUILD_CLI_EXECUTABLES)
add_executable(mlpack_${name}
${name}_main.cpp
)
target_link_libraries(mlpack_${name}
mlpack
)
install(TARGETS mlpack_${name} RUNTIME DESTINATION bin)
endif ()
endmacro ()
# Recurse into each method mlpack provides.
set(DIRS
preprocess
adaboost
amf
ann
cf
decision_stump
det
emst
edge_boxes
# fastmks
gmm
hmm
hoeffding_trees
kernel_pca
kmeans
mean_shift
lars
linear_regression
local_coordinate_coding
logistic_regression
lsh
# mvu
matrix_completion
naive_bayes
nca
neighbor_search
nmf
# lmf
pca
perceptron
quic_svd
radical
range_search
rann
rmva
regularized_svd
softmax_regression
sparse_autoencoder
sparse_coding
nystroem_method
)
foreach(dir ${DIRS})
add_subdirectory(${dir})
endforeach()
set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)