CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. cmake_minimum_required(VERSION 2.8)
  2. project (ImageLabeler)
  3. FIND_PACKAGE(Qt4 REQUIRED)
  4. # The version number.
  5. set (ImageLabeler_VERSION_MAJOR 1)
  6. set (ImageLabeler_VERSION_MINOR 0)
  7. SET(ImageLabeler_SOURCES main.cpp functions.cpp ImageHolder.cpp ImageLabeler.cpp LineEditForm.cpp OptionsForm.cpp)
  8. SET(ImageLabeler_HEADERS ImageHolder.h ImageLabeler.h LineEditForm.h OptionsForm.h)
  9. SET(ImageLabeler_FORMS ui/ImageLabeler.ui)
  10. SET(QT_USE_QTXML TRUE)
  11. QT4_WRAP_CPP(ImageLabeler_HEADERS_MOC ${ImageLabeler_HEADERS})
  12. QT4_WRAP_UI(ImageLabeler_HEADERS_FORMS ${ImageLabeler_FORMS})
  13. # add the binary tree to the search path for include files
  14. # so that we will find TutorialConfig.h
  15. #include_directories ("${PROJECT_BINARY_DIR}")
  16. INCLUDE(${QT_USE_FILE})
  17. ADD_DEFINITIONS(${QT_DEFINITIONS})
  18. # add the executable
  19. add_executable (ImageLabeler ${ImageLabeler_SOURCES} ${ImageLabeler_HEADERS_MOC} ${ImageLabeler_HEADERS_FORMS})
  20. #target_link_libraries (Tutorial ${EXTRA_LIBS})
  21. INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
  22. TARGET_LINK_LIBRARIES(ImageLabeler ${QT_LIBRARIES})
  23. # add the install targets
  24. install (TARGETS ImageLabeler DESTINATION bin)
  25. #install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
  26. # DESTINATION include)