diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-11-08 15:57:59 +0100 |
---|---|---|
committer | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-11-08 15:57:59 +0100 |
commit | 0d95108c3bcebe516ac328c1c2a5cd8f0ed61b3a (patch) | |
tree | 5246045bebd04b5bbe6c1a2f50eb5a388e7f6e07 /Ensoniq/CMakeLists.txt | |
parent | da73b0b8dfd27a9499dd97eb14346f04866711f7 (diff) |
Add cmake select flag for HAL.
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'Ensoniq/CMakeLists.txt')
-rw-r--r-- | Ensoniq/CMakeLists.txt | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Ensoniq/CMakeLists.txt b/Ensoniq/CMakeLists.txt index ce357fe..cd79e1a 100644 --- a/Ensoniq/CMakeLists.txt +++ b/Ensoniq/CMakeLists.txt @@ -16,24 +16,24 @@ # limitations under the License. ########################################################################### +if(HAL_ENSONIQ) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-ensoniq) -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-ensoniq) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE EnsoniqHAL.c) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE EnsoniqHAL.c) - - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() |