CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. cmake_minimum_required(VERSION 2.8.11)
  2. project(annotationGUI)
  3. # Find includes in corresponding build directories
  4. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  5. # Instruct CMake to run moc automatically when needed.
  6. set(CMAKE_AUTOMOC ON)
  7. set(CMAKE_AUTOUIC ON)
  8. set(CMAKE_AUTORCC ON)
  9. set(CMAKE_CXX_STANDARD 11)
  10. # Find the QtWidgets library
  11. find_package(Qt5Widgets)
  12. #find_package(tinyxml2)
  13. find_package( OpenCV REQUIRED )
  14. set(QT_USE_QTGUI TRUE)
  15. set(QT_USE_QTXML TRUE)
  16. # Tell CMake to create the helloworld executable
  17. add_executable(annotation_gui WIN32 model.cpp controller.cpp requestfromserver.cpp setids.cpp setids.ui 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)
  18. # Use the Widgets module from Qt 5.
  19. target_link_libraries(annotation_gui Qt5::Widgets ${OpenCV_LIBS} zmq)
  20. #add_executable(segtest segmentationtest.cpp DetectionClient.cpp DetectionClient.hh ZMQClient.cpp ZMQClient.hh )
  21. #target_link_libraries(segtest ${OpenCV_LIBS} zmq)