diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 12:18:14 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 12:18:14 +0100 |
commit | a14896f9ed209dd3f9597722e5a5697bd7dbf531 (patch) | |
tree | 089ca5cbbd206d1921f8f6b53292f5bc1902ca5c /modules/test/SConscript | |
parent | 84ecdcbca9e55b1f57fbb832e12ff4fdbb86e7c9 (diff) |
meta: Renamed folder containing source
Diffstat (limited to 'modules/test/SConscript')
-rw-r--r-- | modules/test/SConscript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/test/SConscript b/modules/test/SConscript new file mode 100644 index 0000000..6379b24 --- /dev/null +++ b/modules/test/SConscript @@ -0,0 +1,33 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +test_env = env.Clone(); + +test_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +test_env.headers = sorted(glob.glob(dir_path + "/*.h")) + +env.sources += test_env.sources; +env.headers += test_env.headers; + +## Shared lib +objects = [] +test_env.add_source_files(objects, test_env.sources, shared=False); +test_env.library = test_env.StaticLibrary('#build/forstio-test', [objects]); + +# Set Alias +env.Alias('library_test', [test_env.library]); + +env.targets += ['library_test']; + +# Install +env.Install('$prefix/lib/', [test_env.library]); +env.Install('$prefix/include/forstio/test/', [test_env.headers]); |