-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathCMakeLists.txt
32 lines (22 loc) · 1.16 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
PROJECT( foodcam_classifier )
cmake_minimum_required(VERSION 2.8)
FIND_PACKAGE( OpenCV 2.3 REQUIRED )
message(${OpenCV_DIR})
include_directories(${OpenCV_INCLUDE_DIRS})
set (CMAKE_CXX_FLAGS -fopenmp )
ADD_EXECUTABLE( manual-classifier manual_classifier.cpp )
TARGET_LINK_LIBRARIES( manual-classifier ${OpenCV_LIBS} )
ADD_EXECUTABLE( train-bovw train_bovw.cpp training_common.cpp )
TARGET_LINK_LIBRARIES( train-bovw ${OpenCV_LIBS} )
ADD_EXECUTABLE( build-vocabulary build_vocabolary.cpp )
TARGET_LINK_LIBRARIES( build-vocabulary ${OpenCV_LIBS} )
ADD_EXECUTABLE( kmeans-trainer kmeans_trainer.cpp )
TARGET_LINK_LIBRARIES( kmeans-trainer ${OpenCV_LIBS} )
ADD_EXECUTABLE( make-test-background make_test_background_image.cpp )
TARGET_LINK_LIBRARIES( make-test-background ${OpenCV_LIBS} )
ADD_EXECUTABLE( test-classifiers test_classifiers.cpp predict_common.cpp )
TARGET_LINK_LIBRARIES( test-classifiers ${OpenCV_LIBS} )
ADD_EXECUTABLE( train-SVM-alone train_SVM_alone.cpp training_common.cpp )
TARGET_LINK_LIBRARIES( train-SVM-alone ${OpenCV_LIBS} )
ADD_EXECUTABLE( foodcam-predict foodcam_predict.cpp predict_common.cpp )
TARGET_LINK_LIBRARIES( foodcam-predict ${OpenCV_LIBS} )