summaryrefslogtreecommitdiffstats
path: root/AlsaSound/HALayer/CMakeLists.txt
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-03-11 00:27:30 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-03-11 00:27:30 +0100
commit521281617cec5d89725c4844eac68b5a772fab57 (patch)
tree74a5a5154c88cdae485fd2f139d50f3bf003ae9d /AlsaSound/HALayer/CMakeLists.txt
parent5cb52e556fed8eb0cf74d1052fe413fbb7406b0e (diff)
Work in Progress
Static/Dynamic Lib Fixed. Source Tree cleaned up Compile but to be tested Business Logic not done
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)