mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
4de8678b57
--HG-- rename : dlib/add_global_compiler_switch.cmake => dlib/cmake_utils/add_global_compiler_switch.cmake rename : dlib/add_python_module => dlib/cmake_utils/add_python_module rename : dlib/cmake_find_blas.txt => dlib/cmake_utils/cmake_find_blas.txt rename : dlib/dlib.pc.in => dlib/cmake_utils/dlib.pc.in rename : dlib/dlibConfig.cmake.in => dlib/cmake_utils/dlibConfig.cmake.in rename : dlib/release_build_by_default => dlib/cmake_utils/release_build_by_default rename : dlib/tell_visual_studio_to_use_static_runtime.cmake => dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake rename : dlib/dnn/test_for_cpp11/CMakeLists.txt => dlib/cmake_utils/test_for_cpp11/CMakeLists.txt rename : dlib/dnn/test_for_cpp11/cpp11_test.cpp => dlib/cmake_utils/test_for_cpp11/cpp11_test.cpp rename : dlib/dnn/test_for_cuda/CMakeLists.txt => dlib/cmake_utils/test_for_cuda/CMakeLists.txt rename : dlib/dnn/test_for_cuda/cuda_test.cu => dlib/cmake_utils/test_for_cuda/cuda_test.cu rename : dlib/dnn/test_for_cudnn/CMakeLists.txt => dlib/cmake_utils/test_for_cudnn/CMakeLists.txt rename : dlib/dnn/test_for_cudnn/find_cudnn.txt => dlib/cmake_utils/test_for_cudnn/find_cudnn.txt rename : dlib/use_cpp_11.cmake => dlib/cmake_utils/use_cpp_11.cmake
40 lines
1006 B
CMake
40 lines
1006 B
CMake
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.4)
|
|
|
|
|
|
set(USE_SSE4_INSTRUCTIONS ON CACHE BOOL "Use SSE4 instructions")
|
|
include(../../dlib/cmake_utils/add_python_module)
|
|
|
|
add_definitions(-DDLIB_VERSION=${DLIB_VERSION})
|
|
|
|
# Tell cmake to compile all these cpp files into a dlib python module.
|
|
set(python_srcs
|
|
src/dlib.cpp
|
|
src/matrix.cpp
|
|
src/vector.cpp
|
|
src/svm_c_trainer.cpp
|
|
src/svm_rank_trainer.cpp
|
|
src/decision_functions.cpp
|
|
src/other.cpp
|
|
src/basic.cpp
|
|
src/cca.cpp
|
|
src/sequence_segmenter.cpp
|
|
src/svm_struct.cpp
|
|
src/image.cpp
|
|
src/rectangles.cpp
|
|
src/object_detection.cpp
|
|
src/shape_predictor.cpp
|
|
src/correlation_tracker.cpp
|
|
)
|
|
|
|
# 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})
|
|
|
|
# When you run "make install" we will copy the compiled dlib.so (or dlib.pyd)
|
|
# library file to the python_examples folder.
|
|
install_dlib_to(../../python_examples)
|