SET(UI_CONTROLLER ${CMAKE_CURRENT_SOURCE_DIR}/controller.ui)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ui_controller.cs COMMAND ${UICS_EXECUTABLE} ${UI_CONTROLLER} -o ui_controller.cs COMMENT "Generating ui_controller.cs")

SET(SRC_CS_CONTROLLER ${CMAKE_CURRENT_SOURCE_DIR}/main.cs  ${CMAKE_CURRENT_BINARY_DIR}/ui_controller.cs  ${CMAKE_CURRENT_SOURCE_DIR}/controller.cs)
CSHARP_ADD_EXECUTABLE(controller "${SRC_CS_CONTROLLER}" REFERENCES qt-dotnet COMPILE_FLAGS /warn:0)
ADD_DEPENDENCIES(controller qt-dotnet)
