# Find the sources for gui
file( GLOB GUI_SOURCES "*.cc" )

# Add gui executable
if( WIN32 )
  add_executable( fish_gui WIN32 ${GUI_SOURCES} ${COMMON_SOURCES} )
  target_link_libraries(
    fish_gui
    ${OpenCV_LIBS}
    ${WINDOWS_LIBRARIES}
    Qt5::Widgets
    ${QT_THIRD_PARTY_LIBS}
    ${OPENGL_LIBRARIES}
    )
  set_target_properties( 
    fish_gui 
    PROPERTIES 
    LINK_FLAGS "${LINK_FLAGS} /SUBSYSTEM:WINDOWS" 
    )
elseif( APPLE )
  add_executable( fish_gui ${GUI_SOURCES} )
  target_link_libraries(
    fish_gui
    ${OpenCV_LIBS}
    ${APPLE_LIBRARIES}
    Qt5::Widgets
    Qt5::PrintSupport
    ${QT_THIRD_PARTY_LIBS}
    ${OPENGL_LIBRARIES}
    )
endif()

# Add install target 
install( 
  TARGETS fish_gui 
  DESTINATION . 
  )


# Find the sources for video annotator
file( GLOB VIDEO_ANNOTATOR_SOURCES "*.cc" )

# Add video annotator executable
if( WIN32 )
  add_executable( video_annotator WIN32 
    ${VIDEO_ANNOTATOR_SOURCES} 
    ${COMMON_SOURCES} 
    )
  target_link_libraries(
    video_annotator
    ${OpenCV_LIBS}
    ${WINDOWS_LIBRARIES}
    Qt5::Widgets
    ${QT_THIRD_PARTY_LIBS}
    ${OPENGL_LIBRARIES}
    )
  set_target_properties( 
    video_annotator 
    PROPERTIES 
    LINK_FLAGS "${LINK_FLAGS} /SUBSYSTEM:WINDOWS" 
    )
elseif( APPLE )
  add_executable( video_annotator ${VIDEO_ANNOTATOR_SOURCES} )
  target_link_libraries(
    video_annotator
    ${OpenCV_LIBS}
    ${APPLE_LIBRARIES}
    Qt5::Widgets
    Qt5::PrintSupport
    ${QT_THIRD_PARTY_LIBS}
    ${OPENGL_LIBRARIES}
    )
endif()

# Add install target 
install( 
  TARGETS video_annotator 
  DESTINATION . 
  )


Change executable name from fish_gui to video_annotator
Change executable name from fish_gui to video_annotator
