"git@developer.sourcefind.cn:change/sglang.git" did not exist on "3409aaab32c6b4a7b0ec72bc7395396b99507369"
CMakeLists.txt 719 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/object_detection.cpp
25
   )
26

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