committed by
Bertrand Songis
parent
bb2ca31dad
commit
8b4d2b698d
+31
-13
@@ -129,27 +129,45 @@ endforeach()
|
||||
|
||||
set(SRC ${SRC} debug.cpp)
|
||||
|
||||
if(${EEPROM} STREQUAL SDCARD)
|
||||
set(SRC ${SRC} storage/storage_common.cpp storage/sdcard_raw.cpp)
|
||||
elseif(${EEPROM} STREQUAL EEPROM_RLC)
|
||||
set(SRC ${SRC} storage/storage_common.cpp storage/eeprom_common.cpp storage/eeprom_rlc.cpp)
|
||||
add_definitions(-DEEPROM -DEEPROM_RLC)
|
||||
else()
|
||||
set(SRC ${SRC} storage/storage_common.cpp storage/eeprom_common.cpp storage/eeprom_raw.cpp)
|
||||
add_definitions(-DEEPROM -DEEPROM_RAW)
|
||||
endif()
|
||||
|
||||
include(storage/conversions/CMakeLists.txt)
|
||||
|
||||
add_definitions(-DFLAVOUR="${FLAVOUR}")
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/bitmaps/${GUI_DIR})
|
||||
|
||||
add_subdirectory(lua)
|
||||
include(gui/CMakeLists.txt)
|
||||
|
||||
set(SRC ${SRC} storage/storage_common.cpp)
|
||||
if(${STORAGE} STREQUAL SDCARD)
|
||||
set(SRC ${SRC} storage/modelslist.cpp storage/sdcard_common.cpp)
|
||||
if(${STORAGE_FORMAT} STREQUAL BIN)
|
||||
set(SRC ${SRC} storage/sdcard_raw.cpp)
|
||||
add_definitions(-DSDCARD_RAW)
|
||||
elseif(${STORAGE_FORMAT} STREQUAL YAML)
|
||||
set(SRC ${SRC} storage/sdcard_yaml.cpp)
|
||||
add_definitions(-DSDCARD_YAML)
|
||||
include(storage/yaml/CMakeLists.txt)
|
||||
#add_subdirectory(storage/yaml)
|
||||
endif()
|
||||
elseif(${STORAGE} STREQUAL EEPROM)
|
||||
set(SRC ${SRC} storage/eeprom_common.cpp)
|
||||
add_definitions(-DEEPROM)
|
||||
if(${STORAGE_FORMAT} STREQUAL RLC)
|
||||
set(SRC ${SRC} storage/eeprom_rlc.cpp)
|
||||
add_definitions(-DEEPROM_RLC)
|
||||
elseif(${STORAGE_FORMAT} STREQUAL RAW)
|
||||
set(SRC ${SRC} storage/eeprom_raw.cpp)
|
||||
add_definitions(-DEEPROM_RAW)
|
||||
else()
|
||||
set(SRC ${SRC} storage/eeprom_none.cpp)
|
||||
add_definitions(-DEEPROM_NONE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(storage/conversions/CMakeLists.txt)
|
||||
|
||||
add_subdirectory(lua)
|
||||
|
||||
if(RAMBACKUP)
|
||||
add_definitions(-DRAMBACKUP)
|
||||
set(SRC ${SRC} storage/rambackup.cpp storage/rlc.cpp)
|
||||
|
||||
Reference in New Issue
Block a user