Refactor firmware and companion updates plus add extra supporting components
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(updates_NAMES
|
||||
updates
|
||||
updatesdialog
|
||||
updateoptionsdialog
|
||||
repomodels
|
||||
updateinterface
|
||||
updatefirmware
|
||||
updatecompanion
|
||||
updatesdcard
|
||||
updatesounds
|
||||
updatethemes
|
||||
updatemultiprotocol
|
||||
)
|
||||
|
||||
foreach(name ${updates_NAMES})
|
||||
set(updates_SRCS ${updates_SRCS} ${name}.cpp)
|
||||
set(updates_HDRS ${updates_HDRS} ${name}.h)
|
||||
endforeach()
|
||||
|
||||
set(updates_UIS
|
||||
updatesdialog.ui
|
||||
updateoptionsdialog.ui
|
||||
)
|
||||
|
||||
set(updates_QTS
|
||||
updates.h
|
||||
updatesdialog.h
|
||||
updateoptionsdialog.h
|
||||
repomodels.h
|
||||
updateinterface.h
|
||||
)
|
||||
|
||||
qt5_wrap_ui(updates_SRCS ${updates_UIS})
|
||||
qt5_wrap_cpp(updates_SRCS ${updates_QTS})
|
||||
|
||||
add_library(updates ${updates_SRCS} ${updates_HDRS})
|
||||
target_link_libraries(updates PRIVATE ${CPN_COMMON_LIB})
|
||||
Reference in New Issue
Block a user