
include_directories(..)
qt5_add_resources(NEOVIM_RCC_SOURCES data.qrc)
add_executable(nvim-qt main.cpp shell.cpp input.cpp errorwidget.cpp mainwindow.cpp ${NEOVIM_RCC_SOURCES})
target_link_libraries(nvim-qt Qt5::Network Qt5::Widgets ${MSGPACK_LIBRARIES} neovim-qt)

add_executable(nvim-qt-widget main.cpp shell.cpp input.cpp ${NEOVIM_RCC_SOURCES})
set_target_properties(nvim-qt-widget PROPERTIES COMPILE_DEFINITIONS NEOVIMQT_GUI_WIDGET )
target_link_libraries(nvim-qt-widget Qt5::Network Qt5::Widgets ${MSGPACK_LIBRARIES} neovim-qt)



include_directories(..)
qt5_add_resources(NEOVIM_RCC_SOURCES data.qrc)
add_executable(nvim-qt main.cpp shell.cpp input.cpp errorwidget.cpp mainwindow.cpp ${NEOVIM_RCC_SOURCES})
target_link_libraries(nvim-qt Qt5::Network Qt5::Widgets ${MSGPACK_LIBRARIES} neovim-qt)

add_executable(nvim-qt-widget EXCLUDE_FROM_ALL main.cpp shell.cpp input.cpp ${NEOVIM_RCC_SOURCES})
set_target_properties(nvim-qt-widget PROPERTIES COMPILE_DEFINITIONS NEOVIMQT_GUI_WIDGET )
target_link_libraries(nvim-qt-widget Qt5::Network Qt5::Widgets ${MSGPACK_LIBRARIES} neovim-qt)


Exclude widget gui target test from default build
Exclude widget gui target test from default build

- The nvim-qt-widget executable is used to test the shell widget and
  should not be built by default
