diff options
Diffstat (limited to 'Jabra-Solemate/CMakeLists.txt')
-rw-r--r-- | Jabra-Solemate/CMakeLists.txt | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/Jabra-Solemate/CMakeLists.txt b/Jabra-Solemate/CMakeLists.txt index 47a3053..7286f55 100644 --- a/Jabra-Solemate/CMakeLists.txt +++ b/Jabra-Solemate/CMakeLists.txt @@ -17,22 +17,24 @@ ########################################################################### -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-jabra-usb) +if(HAL_JABRA) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-jabra-usb) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE JabraUsbHAL.c) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE JabraUsbHAL.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} - ) + # 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} - ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() |