summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);