summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-sycl/SConstruct')
-rw-r--r--modules/remote-sycl/SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/remote-sycl/SConstruct b/modules/remote-sycl/SConstruct
index 876638a..4bdab03 100644
--- a/modules/remote-sycl/SConstruct
+++ b/modules/remote-sycl/SConstruct
@@ -43,6 +43,13 @@ env_vars.Add('prefix',
validator=isAbsolutePath
)
+env_vars.Add(
+ BoolVariable('build_examples',
+ help='Build examples',
+ default=False
+ )
+);
+
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
CPPDEFINES=['SAW_UNIX'],
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
@@ -52,6 +59,7 @@ env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
,'forstio-io'
,'forstio-io_codec'
,'hipSYCL-rt'
+ ,'omp'
#,'OpenCL'
]
);
@@ -67,6 +75,7 @@ env.targets = [];
Export('env')
SConscript('c++/SConscript')
SConscript('tests/SConscript')
+SConscript('examples/SConscript')
env.Alias('cdb', env.cdb);
env.Alias('all', [env.targets]);