I am using Jamroot/boost-bjam to build a python binding for C++ code:
alias boost_dependencies
: /boost/python//boost_python
/boost/thread//boost_thread
;
# Platform architecture provided as an environment variable
import os ;
local ARCH = [ os.environ ARCH ] ;
# Set up the project-wide requirements that everything uses the
# boost_python library from the project whose global ID is
# /boost/python.
project
: requirements <library>boost_dependencies
<include>../
<include>../../
: requirements
<library-path>../../thirdparty/opencv/lib/
<linkflags>-lm
<linkflags>-lpthread
<linkflags>-lcrypto
<linkflags>-lssl
;
# Declare the three extension modules. You can specify multiple
# source files after the colon separated by spaces.
python-extension test_library : src/Test.cpp
I would like to link with shared libraries in opencv project (../../thirdparty/opencv/lib/) such as libopencv_core.dylib, libopencv_video.dylib etc. on mac. How do I specify the libraries in the Jamroot file and also install them?