diff options
-rw-r--r-- | mpm/tools/CMakeLists.txt | 4 | ||||
-rw-r--r-- | mpm/tools/tlv_eeprom/CMakeLists.txt | 26 |
2 files changed, 15 insertions, 15 deletions
diff --git a/mpm/tools/CMakeLists.txt b/mpm/tools/CMakeLists.txt index c61e4562c..f735c04f3 100644 --- a/mpm/tools/CMakeLists.txt +++ b/mpm/tools/CMakeLists.txt @@ -44,4 +44,6 @@ foreach(eeprom_tool_source ${eeprom_tool_sources}) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${eeprom_tool} DESTINATION ${RUNTIME_DIR}) endforeach(eeprom_tool_source ${eeprom_tool_sources}) -add_subdirectory(tlv_eeprom) +if(ENABLE_LIBMPM AND ENABLE_X400) + add_subdirectory(tlv_eeprom) +endif(ENABLE_LIBMPM AND ENABLE_X400) diff --git a/mpm/tools/tlv_eeprom/CMakeLists.txt b/mpm/tools/tlv_eeprom/CMakeLists.txt index 11879cfb7..f13f1358c 100644 --- a/mpm/tools/tlv_eeprom/CMakeLists.txt +++ b/mpm/tools/tlv_eeprom/CMakeLists.txt @@ -7,21 +7,19 @@ set(eeprom_tool_sources) set(eeprom_tool_libs) -if(ENABLE_LIBMPM AND ENABLE_X400) - message(STATUS "Adding MPM EEPROM tools...") - set(eeprom_tool_libs tlv_eeprom.c tlv_eeprom_io.c crc.c eeprom-pids.c) - list(APPEND eeprom_tool_sources - eeprom-dump.c - eeprom-id.c - eeprom-init.c - ) +message(STATUS "Adding MPM EEPROM tools...") +set(eeprom_tool_libs tlv_eeprom.c tlv_eeprom_io.c crc.c eeprom-pids.c) +list(APPEND eeprom_tool_sources + eeprom-dump.c + eeprom-id.c + eeprom-init.c +) - add_executable(eeprom-update-core eeprom-init.c ${eeprom_tool_libs}) - target_compile_definitions(eeprom-update-core PRIVATE -DTLV_EEPROM_UPDATE) - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/eeprom-update-core DESTINATION ${RUNTIME_DIR}) - add_custom_target(eeprom-update ALL COMMAND ${CMAKE_COMMAND} -E create_symlink eeprom-wrapper eeprom-update) - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/eeprom-update DESTINATION ${RUNTIME_DIR}) -endif(ENABLE_LIBMPM AND ENABLE_X400) +add_executable(eeprom-update-core eeprom-init.c ${eeprom_tool_libs}) +target_compile_definitions(eeprom-update-core PRIVATE -DTLV_EEPROM_UPDATE) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/eeprom-update-core DESTINATION ${RUNTIME_DIR}) +add_custom_target(eeprom-update ALL COMMAND ${CMAKE_COMMAND} -E create_symlink eeprom-wrapper eeprom-update) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/eeprom-update DESTINATION ${RUNTIME_DIR}) foreach(eeprom_tool_source ${eeprom_tool_sources}) get_filename_component(eeprom_tool ${eeprom_tool_source} NAME_WE) |