38 lines
748 B
CMake
38 lines
748 B
CMake
|
|
qt_standard_project_setup()
|
|
|
|
qt_add_executable(accordion-client
|
|
src/main.cpp
|
|
# other client source files go here
|
|
src/TcpClient.cpp
|
|
src/TimerComponent.cpp
|
|
)
|
|
|
|
set_target_properties(accordion-client PROPERTIES OUTPUT_NAME "accordion.out")
|
|
|
|
message(STATUS ${ROOT_DIR})
|
|
|
|
target_include_directories(accordion-client PRIVATE
|
|
${ROOT_DIR}
|
|
)
|
|
|
|
target_link_libraries(accordion-client PRIVATE
|
|
Qt6::Core
|
|
Qt6::Qml
|
|
Qt6::Gui
|
|
Qt6::Quick
|
|
Qt6::QuickControls2
|
|
Qt6::Network
|
|
accordion-common
|
|
)
|
|
|
|
qt_add_qml_module(accordion-client
|
|
URI accordion
|
|
VERSION 1.0
|
|
QML_FILES ui/Main.qml
|
|
)
|
|
|
|
install(TARGETS accordion-client)
|
|
|
|
# if you get lots of wsl warnings use QT_QUICK_BACKEND=software in your execution environment
|