CMakeLists.txt 716 Bytes
Newer Older
1
2
3

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

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

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

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

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