73 lines
1.3 KiB
CMake
73 lines
1.3 KiB
CMake
|
|
project(simulation)
|
|
|
|
set(${PROJECT_NAME}_NAMES
|
|
debugoutput
|
|
filteredtextbuffer
|
|
radiooutputswidget
|
|
simulateduiwidget
|
|
simulatorinterface
|
|
simulatormainwindow
|
|
simulatorstartupdialog
|
|
simulatorwidget
|
|
simulatedgps
|
|
telemetrysimu
|
|
telemetryprovidercrossfire
|
|
telemetryproviderfrsky
|
|
telemetryproviderfrskyhub
|
|
trainersimu
|
|
widgets/lcdwidget
|
|
widgets/radiowidget
|
|
widgets/virtualjoystickwidget
|
|
serialportsdialog
|
|
hostserialconnector
|
|
simulateduiwidgetGeneric
|
|
)
|
|
|
|
if(SDL2_FOUND)
|
|
set(${PROJECT_NAME}_NAMES
|
|
${${PROJECT_NAME}_NAMES}
|
|
joystick
|
|
joystickdialog
|
|
)
|
|
endif()
|
|
|
|
AddHeadersSources()
|
|
|
|
set(${PROJECT_NAME}_HDRS
|
|
${${PROJECT_NAME}_HDRS}
|
|
radiouiaction.h
|
|
widgets/buttonswidget.h
|
|
widgets/radiofaderwidget.h
|
|
widgets/radiokeywidget.h
|
|
widgets/radioknobwidget.h
|
|
widgets/radioswitchwidget.h
|
|
widgets/radiotrimwidget.h
|
|
widgets/sliderwidget.h
|
|
)
|
|
|
|
# AUTOMOC does not detect so manually process
|
|
qt5_wrap_cpp(${PROJECT_NAME}_SRCS
|
|
${${PROJECT_NAME}_HDRS}
|
|
)
|
|
|
|
add_library(${PROJECT_NAME}
|
|
${${PROJECT_NAME}_SRCS}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE
|
|
${CPN_COMMON_LIB}
|
|
Qt5::Svg
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
|
"${CMAKE_CURRENT_LIST_DIR}/widgets"
|
|
"${RADIO_SRC_DIR}/fonts/std"
|
|
PUBLIC
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
|
)
|