SConstruct.diff 1.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
diff --git a/preprocessing/science/rconv/SConstruct b/preprocessing/science/rconv/SConstruct
index 6687f7a4..a58d9df2 100644
--- a/preprocessing/science/rconv/SConstruct
+++ b/preprocessing/science/rconv/SConstruct
@@ -121,15 +121,23 @@ elif env['compileMode'] == 'release':
   env.Append(CPPDEFINES=['NDEBUG'])
   env.Append(CXXFLAGS=['-O2'])
 
+env.AppendUnique( CPPFLAGS = ['-Ideps/include'] )
+env.AppendUnique( LIBPATH= ['deps/lib'] )
+env.AppendUnique( RPATH=['deps/lib'] )
+
 # add pathname to the list of directories which are search for include
-env.Append(CPPPATH=['#/src', '#/../../../src', '#/../../../submodules'])
+env.AppendUnique(CPPPATH=['#/src', '#/../../../src', '#/../../../submodules', '#/../../../submodules/glm',])
+
+conf = env.Configure()
+conf.CheckLibWithHeader('proj', 'proj_api.h', 'cpp')
+conf.CheckLibWithHeader('netcdf', 'netcdf.h', 'cpp')
 
 #
 # add libraries
 #
 # proj
-env.Tool('ProjTool')
-env.Tool('NetcdfTool', required=True)
+#env.Tool('ProjTool')
+#env.Tool('NetcdfTool', required=True)
 
 # build directory
 env['execDir'] = env['buildDir']+'/bin'