"vscode:/vscode.git/clone" did not exist on "f6dec3596c8c5033b36d40050759f14c263e4dc0"
CMakeLists.txt 736 Bytes
Newer Older
1

2
3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.4)

4

5
6
7
8
# Uncomment this to make a Python 3 compatible library instead of a Python 2
# library.
#set(PYTHON3 true)

9
10
include(../../dlib/add_python_module)

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

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