summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-05-23 18:35:32 +0200
committerClaudius Holeksa <mail@keldu.de>2023-05-23 18:35:32 +0200
commit801461d74059586742d9ed23dafd203a071c09c0 (patch)
treea7abd8dfa466f69a8ae2f9345fbf4765ae9c8f4d /src/SConscript
parentcf18707c086a1b47600c924ae1f33a379d1d3fb2 (diff)
scons: Install into correct location
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/SConscript b/src/SConscript
index 41f12e1..1ee0d39 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -14,8 +14,8 @@ core_env = env.Clone();
core_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
core_env.headers = sorted(glob.glob(dir_path + "/*.h"))
-core_env.headers += sorted(glob.glob(dir_path + "/distance/*.h"))
-core_env.headers += sorted(glob.glob(dir_path + "/time/*.h"))
+core_env.distance_headers = sorted(glob.glob(dir_path + "/distance/*.h"))
+core_env.time_headers = sorted(glob.glob(dir_path + "/time/*.h"))
env.sources += core_env.sources;
env.headers += core_env.headers;
@@ -26,10 +26,12 @@ core_env.add_source_files(objects_shared, core_env.sources, shared=True);
core_env.library_shared = core_env.SharedLibrary('#build/kel-unit', [objects_shared]);
# Set Alias
-env.Alias('library_core', [core_env.library_shared, core_env.library_static]);
+env.Alias('library_core', [core_env.library_shared]);
env.targets += ['library_core'];
# Install
-env.Install('$prefix/lib/', [core_env.library_shared, core_env.library_static]);
+env.Install('$prefix/lib/', [core_env.library_shared]);
env.Install('$prefix/include/kel/unit', [core_env.headers]);
+env.Install('$prefix/include/kel/unit/distance', [core_env.distance_headers]);
+env.Install('$prefix/include/kel/unit/time', [core_env.time_headers]);