project( core8 VERSION 0.1 LANGUAGES CXX )

## files:

set( source_files
  src/IoDeviceImpl.cpp
  src/MainWindow.cpp
  src/ScreenWidget.cpp
  src/core8.cpp )

set( header_files
  src/IoDeviceImpl.hpp
  src/MainWindow.hpp
  src/ScreenWidget.hpp )

set( ui_files gui/mainwindow.ui )

qt5_wrap_cpp( header_files_moc ${header_files} )
qt5_wrap_ui( ui_files_moc ${ui_files} )

## executable:

add_executable( ${PROJECT_NAME}
  ${source_files}
  ${header_files}
  ${header_files_moc}
  ${ui_files_moc} )

target_include_directories( ${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR} )
target_link_libraries( ${PROJECT_NAME} PUBLIC model Qt5::Widgets )

project( core8 VERSION 0.1 LANGUAGES CXX )

## files:

set( source_files
  src/IoDeviceImpl.cpp
  src/MainWindow.cpp
  src/ScreenWidget.cpp
  src/core8.cpp )

set( header_files
  src/IoDeviceImpl.hpp )

set( qt_header_files
  src/MainWindow.hpp
  src/ScreenWidget.hpp )

set( ui_files gui/mainwindow.ui )

qt5_wrap_cpp( header_files_moc ${qt_header_files} )
qt5_wrap_ui( ui_files_moc ${ui_files} )

## executable:

add_executable( ${PROJECT_NAME}
  ${source_files}
  ${header_files}
  ${header_files_moc}
  ${ui_files_moc} )

target_include_directories( ${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR} )
target_link_libraries( ${PROJECT_NAME} PUBLIC model Qt5::Widgets )

Remove non-moc header from moc wrap
Remove non-moc header from moc wrap
