CMakeLists.txt 1.01 KB
Newer Older
1

2
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
3

4

5
set(USE_SSE4_INSTRUCTIONS ON CACHE BOOL "Use SSE4 instructions")
6
include(../../dlib/cmake_utils/add_python_module)
7

8
9
add_definitions(-DDLIB_VERSION=${DLIB_VERSION})

Davis King's avatar
Davis King committed
10
# Tell cmake to compile all these cpp files into a dlib python module.
11
12
13
set(python_srcs
   src/dlib.cpp
   src/matrix.cpp
14
   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/image.cpp
24
   src/rectangles.cpp
25
   src/object_detection.cpp
26
   src/shape_predictor.cpp
27
   src/correlation_tracker.cpp
28
   src/face_recognition.cpp
29
30
31
32
33
34
35
36
)

# 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})
37

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