CMakeLists.txt 580 Bytes
Newer Older
1
2
3
4
5

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

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

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

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