-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·37 lines (28 loc) · 1.37 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
cmake_minimum_required(VERSION 2.6)
project(MLAlgorithm CXX)
set(PROJ_EXEC_NAME mlalgorithm)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_BUILD_TYPE Debug)
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -std=c++11 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
endif ()
file(GLOB_RECURSE HEADERS "${PROJECT_SOURCE_DIR}/*/*.h")
include_directories(${HEADERS})
file(GLOB_RECURSE SRCS "${PROJECT_SOURCE_DIR}/apriori/*.cpp"
"${PROJECT_SOURCE_DIR}/cart/*.cpp"
"${PROJECT_SOURCE_DIR}/decisiontree/*.cpp"
"${PROJECT_SOURCE_DIR}/fpgrowth/*.cpp"
"${PROJECT_SOURCE_DIR}/knn/*.cpp"
"${PROJECT_SOURCE_DIR}/naivebayes/*.cpp"
"${PROJECT_SOURCE_DIR}/kmeans/*.cpp"
"${PROJECT_SOURCE_DIR}/logisticregression/*.cpp"
"${PROJECT_SOURCE_DIR}/svm/*.cpp"
"${PROJECT_SOURCE_DIR}/common/*.cpp"
"${PROJECT_SOURCE_DIR}/adaboost/*.cpp")
file(GLOB_RECURSE MAIN_SRCS "${PROJECT_SOURCE_DIR}/mlalgorithm_test.cpp")
message(STATUS "SRCS: ${SRCS}")
message(STATUS "HEADERS: ${HEADERS}")
message(STATUS "MAIN_SRCS: ${MAIN_SRCS}")
add_executable(${PROJ_EXEC_NAME} ${SRCS} ${MAIN_SRCS})