CMakeLists.txt 849 Bytes
Newer Older
1

2
3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.4)

4
5
6

include(../../dlib/add_python_module)

Davis King's avatar
Davis King committed
7
# Tell cmake to compile all these cpp files into a dlib python module.
8
9
10
set(python_srcs
   src/dlib.cpp
   src/matrix.cpp
11
   src/vector.cpp
12
   src/svm_c_trainer.cpp
13
   src/svm_rank_trainer.cpp
Davis King's avatar
Davis King committed
14
   src/decision_functions.cpp
Davis King's avatar
Davis King committed
15
16
   src/other.cpp
   src/basic.cpp
Davis King's avatar
Davis King committed
17
   src/cca.cpp
18
   src/sequence_segmenter.cpp
19
   src/svm_struct.cpp
20
   src/image.cpp
21
   src/rectangles.cpp
22
   src/object_detection.cpp
23
   src/shape_predictor.cpp
24
25
26
27
28
29
30
31
)

# Only add the GUI module if requested
if(NOT ${DLIB_NO_GUI_SUPPORT})
   list(APPEND python_srcs src/gui.cpp)
endif(NOT ${DLIB_NO_GUI_SUPPORT})

add_python_module(dlib ${python_srcs})
32

Davis King's avatar
Davis King committed
33
34
# When you run "make install" we will copy the compiled dlib.so (or dlib.pyd) 
# library file to the python_examples folder.
35
install_dlib_to(../../python_examples)