diff options
Diffstat (limited to 'mpm/tools/CMakeLists.txt')
-rw-r--r-- | mpm/tools/CMakeLists.txt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/mpm/tools/CMakeLists.txt b/mpm/tools/CMakeLists.txt index 1aa079f28..acc9c6c42 100644 --- a/mpm/tools/CMakeLists.txt +++ b/mpm/tools/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright 2017 Ettus Research, a National Instruments Company +# Copyright 2017-2018 Ettus Research, a National Instruments Company # # SPDX-License-Identifier: GPL-3.0 # @@ -13,21 +13,28 @@ INSTALL(PROGRAMS SET(eeprom_tool_sources) SET(eeprom_tool_libs) -IF("${MPM_DEVICE}" STREQUAL "n3xx") - MESSAGE(STATUS "Adding N3XX-specific EEPROM tools...") +IF(ENABLE_LIBMPM) + MESSAGE(STATUS "Adding MPM EEPROM tools...") SET(eeprom_tool_libs eeprom.c) SET(eeprom_tool_sources - db-dump.c - db-id.c - db-init.c eeprom-blank.c eeprom-dump.c eeprom-id.c eeprom-init.c eeprom-set-flags.c + ) +ENDIF(ENABLE_LIBMPM) +IF(ENABLE_MYKONOS) + MESSAGE(STATUS "Adding N3XX-specific EEPROM tools...") + SET(eeprom_tool_libs eeprom.c) + SET(eeprom_tool_sources + db-dump.c + db-id.c + db-init.c fan-limits.c ) -ENDIF("${MPM_DEVICE}" STREQUAL "n3xx") +ENDIF(ENABLE_MYKONOS) + #for each source: build an executable and install FOREACH(eeprom_tool_source ${eeprom_tool_sources}) |