updated build script

This commit is contained in:
Peter Braden 2012-06-22 13:59:59 -07:00
parent 62293f5ecb
commit 8f8181b539
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
#ifdef __cplusplus
#import "opencv2/opencv.hpp"
#endif
#include "OpenCV.h"
#include "Point.h"
#include "Matrix.h"

12
wscript
View File

@ -5,10 +5,14 @@ def set_options(opt):
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
#conf.check(lib='opencv', libpath=[
# '/lib', '/usr/lib', '/usr/local/lib','/usr/local/include'], uselib_store='OPENCV', mandatory=True)
conf.check_cfg(package='opencv', libpath=[
'/lib', '/usr/lib', '/usr/local/lib','/usr/local/include'], args='--cflags --libs', uselib_store='OPENCV')
conf.check_cfg(package='opencv',
atleast_version='2.3.1',
libpath=[
'/lib', '/usr/lib', '/usr/local/lib','/usr/local/include',
'/opt/local/include', '/opt/local/lib'],
args='--cflags --libs',
uselib_store='OPENCV',
mandatory=True)
def build(bld):