summaryrefslogtreecommitdiffstats
path: root/AlsaSound/HALayer/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'AlsaSound/HALayer/CMakeLists.txt')
-rw-r--r--AlsaSound/HALayer/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/AlsaSound/HALayer/CMakeLists.txt b/AlsaSound/HALayer/CMakeLists.txt
index 0b12f62..4601c79 100644
--- a/AlsaSound/HALayer/CMakeLists.txt
+++ b/AlsaSound/HALayer/CMakeLists.txt
@@ -18,9 +18,14 @@
PROJECT(hadware-abstraction-layer C)
-# Fulup NOTE: this might have to be change for a formal static/dynamic lib
-set(halsharedlib ${CMAKE_CURRENT_SOURCE_DIR}/Shared/SharedHalLib.c)
+SET(include_dirs ${CMAKE_CURRENT_SOURCE_DIR}/SharedHal ${include_dirs})
+# Add ShareHalLib statically within each HAL bindings
+SET(link_libraries
+ ${CMAKE_BINARY_DIR}/AlsaSound/HALayer/SharedHal/libsharedhal.a
+ ${link_libraries}
+)
+
+ADD_SUBDIRECTORY(SharedHal)
ADD_SUBDIRECTORY(IntelHda)
-ADD_SUBDIRECTORY(Shared)