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)
SET(CS_FLAGS -warn:0 -r:${LIBRARY_OUTPUT_PATH}/qt-dotnet.dll)
ADD_CS_EXECUTABLE(controller "${SRC_CS_CONTROLLER}" ALL)
