cmake_minimum_required(VERSION 2.8.11)

project(annotationGUI)

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)

# Find the QtWidgets library
find_package(Qt5Widgets)
#find_package(tinyxml2)

find_package( OpenCV REQUIRED )

set(QT_USE_QTGUI TRUE)
set(QT_USE_QTXML TRUE)

# Tell CMake to create the helloworld executable
add_executable(annotation_gui WIN32 model.cpp controller.cpp requestfromserver.cpp requestfromserver.ui newsequenz.cpp newsequenz.ui classoptions.cpp classoptions.ui CSVReader.cpp ZMQClient.cpp DetectionClient.cpp tinyxml2.cpp main.cpp mainwindow.cpp changepacket.cpp changepacket.ui changemask.cpp changemask.ui mask.cpp mainwindow.ui frametree.cpp kmath.cpp frametreemodel.cpp annotationxml.cpp frame.cpp arbeitsview.cpp sequenz.cpp object.cpp kamera.cpp icons.qrc)

# Use the Widgets module from Qt 5.
target_link_libraries(annotation_gui Qt5::Widgets ${OpenCV_LIBS} zmq)





#add_executable(segtest segmentationtest.cpp DetectionClient.cpp DetectionClient.hh ZMQClient.cpp ZMQClient.hh )

#target_link_libraries(segtest  ${OpenCV_LIBS} zmq)
