Make TX volatge for simu more flexible (#7124)
[opentx.git] / companion / src / firmwares / CMakeLists.txt
blobb6b8fcaba4e1550c66b455fcd53d61bebec64eb1
2 set(firmwares_SRCS
3   boards.cpp
4   curvereference.cpp
5   customfunctiondata.cpp
6   eeprominterface.cpp
7   generalsettings.cpp
8   gvardata.cpp
9   io_data.cpp
10   logicalswitchdata.cpp
11   modeldata.cpp
12   moduledata.cpp
13   multiprotocols.cpp
14   radiodata.cpp
15   radiodataconversionstate.cpp
16   rawsource.cpp
17   rawswitch.cpp
18   sensordata.cpp
19   telem_data.cpp
20   er9x/er9xeeprom.cpp
21   er9x/er9xinterface.cpp
22   ersky9x/ersky9xeeprom.cpp
23   ersky9x/ersky9xinterface.cpp
24   opentx/opentxeeprom.cpp
25   opentx/opentxinterface.cpp
26   )
28 string(REPLACE ".cpp" ".h" firmwares_HDRS "${firmwares_SRCS}")
30 list(APPEND firmwares_HDRS
31   eepromimportexport.h
32   moduledata.h
33   )
35 add_library(firmwares ${firmwares_SRCS} ${firmwares_HDRS})
36 target_link_libraries(firmwares ${CPN_COMMON_LIB} Qt5::Core Qt5::Xml Qt5::Widgets)
37 target_include_directories(firmwares
38   PRIVATE
39     ${CMAKE_SOURCE_DIR}
40     ${CMAKE_CURRENT_BINARY_DIR}
41   PUBLIC
42     "${CMAKE_CURRENT_LIST_DIR}"
43     "${CMAKE_CURRENT_LIST_DIR}/er9x"
44     "${CMAKE_CURRENT_LIST_DIR}/ersky9x"
45     "${CMAKE_CURRENT_LIST_DIR}/opentx"
46   )