summaryrefslogtreecommitdiff
path: root/modules/core/c++/test/SConscript
blob: e8dac6a0bf796c74ebb2a3756ffde2a2409445ac (plain)
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
32
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 + "/*.hpp"))

env.sources += test_env.sources;
env.headers += test_env.headers;

## Shared lib
objects = []
test_env.add_source_files(objects, test_env.sources, shared=False);
env.test_library = test_env.StaticLibrary('#build/forstio-test', [objects]);

# Set Alias
env.Alias('library_test', [env.test_library]);

env.targets += ['library_test'];

# Install
env.Install('$prefix/lib/', [env.test_library]);
env.Install('$prefix/include/forstio/test/', [test_env.headers]);