chore(cpn): cmake use automoc and autouic (#4258)
This commit is contained in:
@@ -1,75 +1,70 @@
|
||||
|
||||
set(firmwares_SRCS
|
||||
adjustmentreference.cpp
|
||||
boards.cpp
|
||||
curvedata.cpp
|
||||
curvereference.cpp
|
||||
customfunctiondata.cpp
|
||||
eeprominterface.cpp
|
||||
generalsettings.cpp
|
||||
gvardata.cpp
|
||||
input_data.cpp
|
||||
flightmodedata.cpp
|
||||
heli_data.cpp
|
||||
logicalswitchdata.cpp
|
||||
mixdata.cpp
|
||||
modeldata.cpp
|
||||
moduledata.cpp
|
||||
multiprotocols.cpp
|
||||
output_data.cpp
|
||||
radiodata.cpp
|
||||
radiodataconversionstate.cpp
|
||||
rawsource.cpp
|
||||
rawswitch.cpp
|
||||
sensordata.cpp
|
||||
telem_data.cpp
|
||||
timerdata.cpp
|
||||
ersky9x/ersky9xeeprom.cpp
|
||||
ersky9x/ersky9xinterface.cpp
|
||||
opentx/opentxeeprom.cpp
|
||||
opentx/opentxinterface.cpp
|
||||
edgetx/edgetxinterface.cpp
|
||||
edgetx/yaml_ops.cpp
|
||||
edgetx/yaml_generalsettings.cpp
|
||||
edgetx/yaml_calibdata.cpp
|
||||
edgetx/yaml_trainerdata.cpp
|
||||
edgetx/yaml_switchconfig.cpp
|
||||
edgetx/yaml_modeldata.cpp
|
||||
edgetx/yaml_rawswitch.cpp
|
||||
edgetx/yaml_rawsource.cpp
|
||||
edgetx/yaml_mixdata.cpp
|
||||
edgetx/yaml_expodata.cpp
|
||||
edgetx/yaml_curvedata.cpp
|
||||
edgetx/yaml_moduledata.cpp
|
||||
edgetx/yaml_logicalswitchdata.cpp
|
||||
edgetx/yaml_customfunctiondata.cpp
|
||||
edgetx/yaml_sensordata.cpp
|
||||
edgetx/yaml_screendata.cpp
|
||||
edgetx/yaml_usbjoystickdata.cpp
|
||||
datahelpers.cpp
|
||||
customisation_data.cpp
|
||||
)
|
||||
project(firmwares)
|
||||
|
||||
string(REPLACE ".cpp" ".h" firmwares_HDRS "${firmwares_SRCS}")
|
||||
set(${PROJECT_NAME}_NAMES
|
||||
adjustmentreference
|
||||
boards
|
||||
curvedata
|
||||
curvereference
|
||||
customfunctiondata
|
||||
customisation_data
|
||||
datahelpers
|
||||
eeprominterface
|
||||
generalsettings
|
||||
gvardata
|
||||
input_data
|
||||
flightmodedata
|
||||
heli_data
|
||||
logicalswitchdata
|
||||
mixdata
|
||||
modeldata
|
||||
moduledata
|
||||
multiprotocols
|
||||
output_data
|
||||
radiodata
|
||||
radiodataconversionstate
|
||||
rawsource
|
||||
rawswitch
|
||||
sensordata
|
||||
telem_data
|
||||
timerdata
|
||||
ersky9x/ersky9xeeprom
|
||||
ersky9x/ersky9xinterface
|
||||
opentx/opentxeeprom
|
||||
opentx/opentxinterface
|
||||
edgetx/edgetxinterface
|
||||
edgetx/yaml_calibdata
|
||||
edgetx/yaml_curvedata
|
||||
edgetx/yaml_customfunctiondata
|
||||
edgetx/yaml_expodata
|
||||
edgetx/yaml_generalsettings
|
||||
edgetx/yaml_logicalswitchdata
|
||||
edgetx/yaml_mixdata
|
||||
edgetx/yaml_modeldata
|
||||
edgetx/yaml_moduledata
|
||||
edgetx/yaml_ops
|
||||
edgetx/yaml_rawsource
|
||||
edgetx/yaml_rawswitch
|
||||
edgetx/yaml_screendata
|
||||
edgetx/yaml_sensordata
|
||||
edgetx/yaml_switchconfig
|
||||
edgetx/yaml_trainerdata
|
||||
edgetx/yaml_usbjoystickdata
|
||||
)
|
||||
|
||||
list(APPEND firmwares_HDRS
|
||||
eepromimportexport.h
|
||||
moduledata.h
|
||||
customisation_data.h
|
||||
)
|
||||
AddHeadersSources()
|
||||
|
||||
set(firmwares_QT
|
||||
curvereference.h
|
||||
)
|
||||
add_library(${PROJECT_NAME}
|
||||
${${PROJECT_NAME}_HDRS}
|
||||
${${PROJECT_NAME}_SRCS}
|
||||
)
|
||||
|
||||
qt5_wrap_cpp(firmwares_SRCS ${firmwares_QT})
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
${CPN_COMMON_LIB}
|
||||
yaml-cpp
|
||||
)
|
||||
|
||||
add_library(firmwares ${firmwares_SRCS} ${firmwares_HDRS})
|
||||
|
||||
target_link_libraries(firmwares ${CPN_COMMON_LIB} datamodels shared Qt5::Core Qt5::Xml Qt5::Widgets)
|
||||
target_link_libraries(firmwares yaml-cpp)
|
||||
|
||||
target_include_directories(firmwares
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
@@ -79,4 +74,4 @@ target_include_directories(firmwares
|
||||
"${CMAKE_CURRENT_LIST_DIR}/ersky9x"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/opentx"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/edgetx"
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user